Class: Pppt::PresentationPages
- Inherits:
-
Object
- Object
- Pppt::PresentationPages
- Defined in:
- lib/pppt/presentation_pages.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(pages) ⇒ PresentationPages
constructor
A new instance of PresentationPages.
Constructor Details
#initialize(pages) ⇒ PresentationPages
Returns a new instance of PresentationPages.
3 4 5 6 7 8 |
# File 'lib/pppt/presentation_pages.rb', line 3 def initialize(pages) @data = pages i = 0 pages.each { |x| x['page'] = i += 1 unless x['action'] } @size = i end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
2 3 4 |
# File 'lib/pppt/presentation_pages.rb', line 2 def data @data end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
2 3 4 |
# File 'lib/pppt/presentation_pages.rb', line 2 def size @size end |