method
new
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::JSON::Encoding
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