Class: Remap::Selector
- Inherits:
-
Dry::Interface
- Object
- Dry::Interface
- Remap::Selector
- Defined in:
- lib/remap/selector.rb,
lib/remap/selector/all.rb,
lib/remap/selector/key.rb,
lib/remap/selector/index.rb
Overview
Defines how a path element, or selector Specifies how a value is extracted from a state
Defined Under Namespace
Instance Method Summary collapse
-
#call(state) {|| ... } ⇒ State
abstract
Selects value from state, package it as a state and passes it to block.
Instance Method Details
#call(state) {|| ... } ⇒ State
This method is abstract.
Selects value from state, package it as a state and passes it to block
17 18 19 |
# File 'lib/remap/selector.rb', line 17 def call(state) raise NotImplementedError, "#{self.class}#call not implemented" end |