class JsonRefs::DereferenceHandler::Local

Public Class Methods

new(options = {}) click to toggle source
# File lib/json_refs/dereference_handler.rb, line 17
def initialize(options = {})
  @path = options.fetch(:path)
  @doc = options.fetch(:doc)
end

Public Instance Methods

call() click to toggle source
# File lib/json_refs/dereference_handler.rb, line 22
def call
  Hana::Pointer.new(@path[1..-1]).eval(@doc)
end