Class: Remap::Path

Inherits:
Dry::Interface
  • Object
show all
Defined in:
lib/remap/path.rb,
lib/remap/path/input.rb,
lib/remap/path/output.rb

Overview

Represents a sequence of keys and selects or maps a value given a path

Defined Under Namespace

Modules: Dispatch Classes: Input, Output

Instance Method Summary collapse

Instance Method Details

#call(state) ⇒ State

This method is abstract.

Returns:

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/remap/path.rb', line 13

def call(state)
  raise NotImplementedError, "#{self.class}#call not implemented"
end

#to_procProc

Returns:

  • (Proc)


18
19
20
# File 'lib/remap/path.rb', line 18

def to_proc
  method(:call).to_proc
end