Method: Azeroth::Decorator#initialize

Defined in:
lib/azeroth/decorator.rb

#initialize(object) ⇒ Decorator #initialize(array) ⇒ Decorator

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Decorator.

Overloads:

  • #initialize(object) ⇒ Decorator

    Parameters:

    • object (Object)

      to be decorated

  • #initialize(array) ⇒ Decorator

    Parameters:

    • array (Array)

      array of objects to be decorated



86
87
88
# File 'lib/azeroth/decorator.rb', line 86

def initialize(object)
  @object = object
end