Class: Jimmy::Loaders::JSON

Inherits:
Base
  • Object
show all
Defined in:
lib/jimmy/loaders/json.rb

Overview

Loads a plain .json file

Instance Attribute Summary

Attributes inherited from Base

#source

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from Jimmy::Loaders::Base

Instance Method Details

#loadJimmy::Schema

Returns:



10
11
12
# File 'lib/jimmy/loaders/json.rb', line 10

def load
  Schema.new ::JSON.parse(source.read)
end