Class: YFantasy::Transformations::KeyUnwrapper

Inherits:
BaseTransform show all
Defined in:
lib/y_fantasy/transformations/key_unwrapper.rb

Instance Method Summary collapse

Methods inherited from BaseTransform

#>>, #[], #call, #ensure_function_set, #t

Constructor Details

#initialize(*keys) ⇒ KeyUnwrapper

Returns a new instance of KeyUnwrapper.



6
7
8
9
# File 'lib/y_fantasy/transformations/key_unwrapper.rb', line 6

def initialize(*keys)
  @function = keys.map { |key| t(:unwrap, key) }.inject(:>>)
  super
end