Class: Rabbit::Slide
Instance Method Summary collapse
- #<<(page) ⇒ Object
- #each(&block) ⇒ Object
-
#initialize ⇒ Slide
constructor
A new instance of Slide.
- #size ⇒ Object
Constructor Details
#initialize ⇒ Slide
Returns a new instance of Slide.
24 25 26 |
# File 'lib/rabbit/slide.rb', line 24 def initialize @pages = [] end |
Instance Method Details
#<<(page) ⇒ Object
28 29 30 |
# File 'lib/rabbit/slide.rb', line 28 def <<(page) @pages << page end |
#each(&block) ⇒ Object
36 37 38 |
# File 'lib/rabbit/slide.rb', line 36 def each(&block) @pages.each(&block) end |
#size ⇒ Object
32 33 34 |
# File 'lib/rabbit/slide.rb', line 32 def size @pages.size end |