Class: Jimmy::Loaders::JSON
Overview
Loads a plain .json file
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Jimmy::Loaders::Base
Instance Method Details
#load ⇒ Jimmy::Schema
10 11 12 |
# File 'lib/jimmy/loaders/json.rb', line 10 def load Schema.new ::JSON.parse(source.read) end |