Class: EngineOfWar::PageCollection
- Inherits:
-
Array
- Object
- Array
- EngineOfWar::PageCollection
- Defined in:
- lib/engine_of_war/page_collection.rb
Instance Attribute Summary collapse
-
#collection_root ⇒ Object
Returns the value of attribute collection_root.
Instance Method Summary collapse
-
#initialize(collection_root) ⇒ PageCollection
constructor
A new instance of PageCollection.
Constructor Details
#initialize(collection_root) ⇒ PageCollection
Returns a new instance of PageCollection.
4 5 6 7 8 |
# File 'lib/engine_of_war/page_collection.rb', line 4 def initialize(collection_root) super() self.collection_root = collection_root self.concat(pages) end |
Instance Attribute Details
#collection_root ⇒ Object
Returns the value of attribute collection_root.
2 3 4 |
# File 'lib/engine_of_war/page_collection.rb', line 2 def collection_root @collection_root end |