Class: EngineOfWar::PageCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/engine_of_war/page_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_rootObject

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