Class: Remap::Path
- Inherits:
-
Dry::Interface
- Object
- Dry::Interface
- Remap::Path
- 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
- #call(state) ⇒ State abstract
- #to_proc ⇒ Proc
Instance Method Details
#call(state) ⇒ State
This method is abstract.
13 14 15 |
# File 'lib/remap/path.rb', line 13 def call(state) raise NotImplementedError, "#{self.class}#call not implemented" end |
#to_proc ⇒ Proc
18 19 20 |
# File 'lib/remap/path.rb', line 18 def to_proc method(:call).to_proc end |