Constants
No documentation available
Class Methods
3.5
View on GitHub
# File tmp/rubies/ruby-3.5.0-preview1/ext/json/lib/json/ext.rb, line 17
def initialize(source, opts = nil)
@source = source
@config = Config.new(opts)
end
No documentation available
3.5
View on GitHub
# File tmp/rubies/ruby-3.5.0-preview1/ext/json/lib/json/ext.rb, line 11
def parse(...)
new(...).parse
end
No documentation available
Instance Methods
#
3.5
View on GitHub
# File tmp/rubies/ruby-3.5.0-preview1/ext/json/lib/json/ext.rb, line 26
def parse
@config.parse(@source)
end
No documentation available
#
3.5
View on GitHub
# File tmp/rubies/ruby-3.5.0-preview1/ext/json/lib/json/ext.rb, line 22
def source
@source.dup
end
No documentation available