Class: EnumerableDecorator
Instance Method Summary
collapse
#decorated?, name_for
#decorate, #decorate!, #decorated, #decorated?
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Magic::Decorator::Base
Instance Method Details
#to_a ⇒ Object
4
|
# File 'lib/enumerable_decorator.rb', line 4
def to_a(...) = super.map &:decorated
|
#to_ary ⇒ Object
5
|
# File 'lib/enumerable_decorator.rb', line 5
def to_ary(...) = super.map &:decorated
|
#to_h ⇒ Object
7
|
# File 'lib/enumerable_decorator.rb', line 7
def to_h(...) = super.to_h { |*h| h.map! &:decorated }
|
#to_hash ⇒ Object
8
|
# File 'lib/enumerable_decorator.rb', line 8
def to_hash(...) = super.to_h { |*h| h.map! &:decorated }
|