Class: Rabbit::Slide

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/rabbit/slide.rb

Instance Method Summary collapse

Constructor Details

#initializeSlide

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

#sizeObject


32
33
34
# File 'lib/rabbit/slide.rb', line 32

def size
  @pages.size
end