edge badge
Methods
E
N
Attributes
[R] options
Class Public methods
new(options = nil)
# File activesupport/lib/active_support/json/encoding.rb, line 27
def initialize(options = nil)
  @options = options || {}
end
Instance Public methods
encode(value)
# File activesupport/lib/active_support/json/encoding.rb, line 31
def encode(value)
  value.as_json(options.dup).encode_json(self)
end
escape(string)
# File activesupport/lib/active_support/json/encoding.rb, line 35
def escape(string)
  Encoding.escape(string)
end