Class: Seory::PageGroup
- Inherits:
-
Object
- Object
- Seory::PageGroup
- Defined in:
- lib/seory/page_group.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
Instance Method Summary collapse
- #add(page) ⇒ Object
-
#initialize(name) ⇒ PageGroup
constructor
A new instance of PageGroup.
Constructor Details
#initialize(name) ⇒ PageGroup
Returns a new instance of PageGroup.
6 7 8 9 |
# File 'lib/seory/page_group.rb', line 6 def initialize(name) @name = name @pages = [] end |
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default.
3 4 5 |
# File 'lib/seory/page_group.rb', line 3 def default @default end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/seory/page_group.rb', line 4 def name @name end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
4 5 6 |
# File 'lib/seory/page_group.rb', line 4 def pages @pages end |
Instance Method Details
#add(page) ⇒ Object
11 12 13 |
# File 'lib/seory/page_group.rb', line 11 def add(page) @pages << page end |