Methods
Public Instance methods
[ show source ]
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 76 76: def +(other) 77: dup.concat(other) 78: end
Alias for concat
This method is also aliased as
<<
[ show source ]
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 67 67: def concat(value) 68: if value.html_safe? 69: super(value) 70: else 71: super(ERB::Util.h(value)) 72: end 73: end
[ show source ]
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 84 84: def html_safe 85: self 86: end
[ show source ]
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 80 80: def html_safe? 81: true 82: end
[ show source ]
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 88 88: def to_s 89: self 90: end
[ show source ]
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 92 92: def to_yaml(*args) 93: to_str.to_yaml(*args) 94: end