class Hub::JSON

Stupid pure Ruby JSON parser.

Stupid pure Ruby JSON parser.

Constants

AEN
BOL
CODE
COL
ESC
HEN
KEY
NUL
NUM
OBJ
SPEC
STE
STR
UNI
WSP

Attributes

scanner[R]

Public Class Methods

new(data) click to toggle source
# File lib/hub/json.rb, line 21
def initialize data
  @scanner = StringScanner.new data.to_s
end
parse(data) click to toggle source
# File lib/hub/json.rb, line 6
def self.parse(data) new(data).parse end

Public Instance Methods

parse() click to toggle source
# File lib/hub/json.rb, line 25
def parse
  space
  object
end