Class: Remap::Iteration::Other

Inherits:
Concrete
  • Object
show all
Defined in:
lib/remap/iteration/other.rb

Overview

Default iterator which doesn’t do anything

Instance Method Summary collapse

Instance Method Details

#call(&block) ⇒ Object

See Also:

  • Iteration#map


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

def call(&block)
  state.fatal!("Expected an enumerable, got %s (%s)", value, value.class)
end