class JSON::Ext::Parser - Oj

# class JSON::Ext::Parser

### Public Class Methods

new(src) click to toggle source

    # File lib/oj/json.rb, line 77
    def initialize(src)
      raise TypeError.new("already initialized") unless @source.nil?
      @source = src
    end

### Public Instance Methods

parse() click to toggle source

    # File lib/oj/json.rb, line 87
    def parse()
      raise TypeError.new("already initialized") if @source.nil?
      JSON.parse(@source)
    end

source() click to toggle source

    # File lib/oj/json.rb, line 82
    def source()
      raise TypeError.new("already initialized") if @source.nil?
      @source
    end