Class: Slide
- Inherits:
-
Object
- Object
- Slide
- Defined in:
- lib/infuse/slide.rb
Instance Method Summary collapse
- #convert(slide_template, markup_lang = "textile") ⇒ Object
-
#initialize(title, content_lines) ⇒ Slide
constructor
A new instance of Slide.
- #notes(content) ⇒ Object
Constructor Details
#initialize(title, content_lines) ⇒ Slide
Returns a new instance of Slide.
2 3 4 5 6 |
# File 'lib/infuse/slide.rb', line 2 def initialize(title, content_lines) @title = title @content = content_lines.to_s @notes = "" end |
Instance Method Details
#convert(slide_template, markup_lang = "textile") ⇒ Object
12 13 14 |
# File 'lib/infuse/slide.rb', line 12 def convert(, markup_lang="textile") RedCloth.new(ERB.new(, 0, ">").result(self.send(:binding))).to_html end |
#notes(content) ⇒ Object
8 9 10 |
# File 'lib/infuse/slide.rb', line 8 def notes(content) @notes = content.to_s end |