Namespace
Methods
- #
- C
- E
- H
- I
- N
- O
- P
- S
- T
Constants
UNSAFE_STRING_METHODS | = | %w( capitalize chomp chop delete downcase gsub lstrip next reverse rstrip slice squeeze strip sub succ swapcase tr tr_s upcase ) |
Class Public methods
new(*)
Link
Instance Public methods
%(args)
Link
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 202 def %(args) case args when Hash escaped_args = Hash[args.map { |k,arg| [k, html_escape_interpolated_argument(arg)] }] else escaped_args = Array(args).map { |arg| html_escape_interpolated_argument(arg) } end self.class.new(super(escaped_args)) end
+(other)
Link
[](*args)
Link
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 147 def [](*args) if args.size < 2 super else if html_safe? new_safe_buffer = super if new_safe_buffer new_safe_buffer.instance_variable_set :@html_safe, true end new_safe_buffer else to_str[*args] end end end
clone_empty()
Link
encode_with(coder)
Link
html_safe?()
Link
initialize_copy(other)
Link
prepend(value)
Link
prepend!(value)
Link
safe_concat(value)
Link
to_param()
Link