instance method
[]
Ruby on Rails 3.1.12
Since v3.0.20Signature
[](*args)
No documentation comment.
Parameters
-
argsrest
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 100
def [](*args)
return super if args.size < 2
if html_safe?
new_safe_buffer = super
new_safe_buffer.instance_eval { @html_safe = true }
new_safe_buffer
else
to_str[*args]
end
end
Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 100
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer