# File lib/active_support/core_ext/string/output_safety.rb, line 141 141: def +(other) 142: dup.concat(other) 143: end
# File lib/active_support/core_ext/string/output_safety.rb, line 101 101: def [](*args) 102: return super if args.size < 2 103: 104: if html_safe? 105: new_safe_buffer = super 106: new_safe_buffer.instance_eval { @html_safe = true } 107: new_safe_buffer 108: else 109: to_str[*args] 110: end 111: end
# File lib/active_support/core_ext/string/output_safety.rb, line 128 128: def clone_empty 129: self[0, 0] 130: end
# File lib/active_support/core_ext/string/output_safety.rb, line 132 132: def concat(value) 133: if !html_safe? || value.html_safe? 134: super(value) 135: else 136: super(ERB::Util.h(value)) 137: end 138: end
# File lib/active_support/core_ext/string/output_safety.rb, line 157 157: def encode_with(coder) 158: coder.represent_scalar nil, to_str 159: end
# File lib/active_support/core_ext/string/output_safety.rb, line 145 145: def html_safe? 146: defined?(@html_safe) && @html_safe 147: end
# File lib/active_support/core_ext/string/output_safety.rb, line 123 123: def initialize_copy(other) 124: super 125: @html_safe = other.html_safe? 126: end
# File lib/active_support/core_ext/string/output_safety.rb, line 113 113: def safe_concat(value) 114: raise SafeConcatError unless html_safe? 115: original_concat(value) 116: end
# File lib/active_support/core_ext/string/output_safety.rb, line 153 153: def to_param 154: to_str 155: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.