Class: Schemas::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/schema_loader.rb

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ Loader

Returns a new instance of Loader.



5
6
7
# File 'lib/schema_loader.rb', line 5

def initialize(filename)
  @filename = filename
end

Instance Method Details

#loadObject



9
10
11
# File 'lib/schema_loader.rb', line 9

def load
  JSON.parse(File.read(@filename))
end