Class: JsonRefs::DereferenceHandler::File

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ File

Returns a new instance of File.



7
8
9
# File 'lib/json_refs/dereference_handler.rb', line 7

def initialize(options = {})
  @path = options.fetch(:path)
end

Instance Method Details

#callObject



11
12
13
# File 'lib/json_refs/dereference_handler.rb', line 11

def call
  JsonRefs::Loader.handle(@path)
end