Class: Remap::Rule::Void

Inherits:
Concrete
  • Object
show all
Defined in:
lib/remap/rule/void.rb

Overview

Represents a mapping without block

Mapper.call("A") # => "A"

Examples:

Maps “A” to “A”

class Mapper < Remap::Base
  define do
    map
  end
end

Instance Method Summary collapse

Instance Method Details

#call(state) ⇒ State<T>

Parameters:

Returns:



21
22
23
# File 'lib/remap/rule/void.rb', line 21

def call(state)
  state
end