Class: YFantasy::Transformations::KeyUnwrapper
- Inherits:
-
BaseTransform
- Object
- BaseTransform
- YFantasy::Transformations::KeyUnwrapper
- Defined in:
- lib/y_fantasy/transformations/key_unwrapper.rb
Instance Method Summary collapse
-
#initialize(*keys) ⇒ KeyUnwrapper
constructor
A new instance of KeyUnwrapper.
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 |