Class: Eggplant::Slides
- Inherits:
-
Object
- Object
- Eggplant::Slides
- Defined in:
- lib/eggplant/slides.rb
Instance Method Summary collapse
-
#initialize(path, options = {}) ⇒ Slides
constructor
A new instance of Slides.
- #size ⇒ Object
- #to_html ⇒ Object
Constructor Details
#initialize(path, options = {}) ⇒ Slides
4 5 6 7 8 9 10 11 12 |
# File 'lib/eggplant/slides.rb', line 4 def initialize path, ={} = [] @title = nil Dir[path+'/**/*.md'].each do |file| if !(file =~ /README.md$/) process file, File.read(file) end end end |
Instance Method Details
#size ⇒ Object
14 15 16 |
# File 'lib/eggplant/slides.rb', line 14 def size .size end |
#to_html ⇒ Object
18 19 20 21 22 |
# File 'lib/eggplant/slides.rb', line 18 def to_html .map do || [:body], [:options] end.join "\n" end |