Class: Frosting::PresentedCollection
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Frosting::PresentedCollection
- Includes:
- Enumerable
- Defined in:
- lib/frosting/repository.rb
Instance Method Summary collapse
- #+(other) ⇒ Object
-
#initialize(collection, options) ⇒ PresentedCollection
constructor
A new instance of PresentedCollection.
Constructor Details
#initialize(collection, options) ⇒ PresentedCollection
Returns a new instance of PresentedCollection.
36 37 38 39 |
# File 'lib/frosting/repository.rb', line 36 def initialize(collection, ) @options = super(collection) end |
Instance Method Details
#+(other) ⇒ Object
41 42 43 |
# File 'lib/frosting/repository.rb', line 41 def +(other) to_a + other.to_a end |