Module: Humanized::JsonSource
- Defined in:
- lib/more/humanized/json_source.rb
Instance Method Summary collapse
Instance Method Details
#read_json(file) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/more/humanized/json_source.rb', line 21 def read_json(file) f = File.open(file) js = JsonSource.translate(Yajl::Parser.new(:symbolize_keys => true).parse( f )) f.close return js end |