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