Class: Remap::Static

Inherits:
Dry::Interface
  • Object
show all
Defined in:
lib/remap/static.rb,
lib/remap/static/fixed.rb,
lib/remap/static/option.rb

Overview

A static mapped value either represented by an option or a value

Defined Under Namespace

Classes: Fixed, Option

Instance Method Summary collapse

Instance Method Details

#call(state) ⇒ State<Y>

This method is abstract.

Maps a static value to state

Parameters:

Returns:

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/remap/static.rb', line 15

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