instance method []=

Ruby on Rails 8.1.2

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

[]=(arg1, arg2, arg3 = nil)

No documentation comment.

Parameters

arg1 req
arg2 req
arg3 opt = nil
Source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 103
    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 103 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::SafeBuffer

Type at least 2 characters to search.

↑↓ navigate · open · esc close