Class: Remap::Selector

Inherits:
Dry::Interface
  • Object
show all
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

Classes: All, Index, Key

Instance Method Summary collapse

Instance Method Details

#call(state) {|| ... } ⇒ State

This method is abstract.

Selects value from state, package it as a state and passes it to block

Parameters:

Yield Parameters:

Yield Returns:

Returns:

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/remap/selector.rb', line 17

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