instance method
[]=
Ruby on Rails 7.2.3
Since v6.0.6Signature
[]=(arg1, arg2, arg3 = nil)
No documentation comment.
Parameters
-
arg1req -
arg2req -
arg3opt = nil
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 104
def []=(arg1, arg2, arg3 = nil)
if arg3
super(arg1, arg2, implicit_html_escape_interpolated_argument(arg3))
else
super(arg1, implicit_html_escape_interpolated_argument(arg2))
end
end
Defined in activesupport/lib/active_support/core_ext/string/output_safety.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::SafeBuffer