method

new

rails latest stable - Class: ActiveSupport::JSON::Encoding

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

new(options = nil)
public

No documentation available.

# File activesupport/lib/active_support/json/encoding.rb, line 171
          def initialize(options = nil)
            if options
              options = options.dup
              @escape = options.delete(:escape) { true }
              @options = options.freeze
            else
              @escape = true
              @options = {}.freeze
            end
          end