instance method
[]
Ruby on Rails 7.2.3
Since v3.0.20Signature
[](*args)
No documentation comment.
Parameters
-
argsrest
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 38
def [](*args)
if html_safe?
new_string = super
return unless new_string
string_into_safe_buffer(new_string, true)
else
to_str[*args]
end
end
Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 38
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer