Flowdock
method

[]

Importance_0
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: ActiveSupport::SafeBuffer
[](*args) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 151
    def [](*args)
      if args.size < 2
        super
      elsif 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
Register or log in to add new notes.