Methods
- #
- C
- E
- H
- I
- N
- O
- S
- T
Classes and Modules
Constants
UNSAFE_STRING_METHODS | = | ["capitalize", "chomp", "chop", "delete", "downcase", "gsub", "lstrip", "next", "reverse", "rstrip", "slice", "squeeze", "strip", "sub", "succ", "swapcase", "tr", "tr_s", "upcase", "prepend"].freeze |
Class Public methods
Instance Public methods
Alias for concat
# File activesupport/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
This method is also aliased as
original_concat
<<
Alias for concat