Class: Typekit::Processing::Parser::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/typekit/processing/parser/json.rb

Instance Method Summary collapse

Instance Method Details

#process(data) ⇒ Object



7
8
9
10
11
# File 'lib/typekit/processing/parser/json.rb', line 7

def process(data)
  ::JSON.parse(data)
rescue
  raise Error, 'Unable to parse'
end