Class: Tramway::Core::ApplicationDecoratedCollection

Inherits:
Array
  • Object
show all
Defined in:
app/decorators/tramway/core/application_decorated_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(array, original_array) ⇒ ApplicationDecoratedCollection

Returns a new instance of ApplicationDecoratedCollection.



4
5
6
7
# File 'app/decorators/tramway/core/application_decorated_collection.rb', line 4

def initialize(array, original_array)
  @original_array = original_array
  super(array)
end

Instance Attribute Details

#original_arrayObject (readonly)

Returns the value of attribute original_array.



9
10
11
# File 'app/decorators/tramway/core/application_decorated_collection.rb', line 9

def original_array
  @original_array
end