Class: Slide

Inherits:
Object
  • Object
show all
Defined in:
lib/infuse/slide.rb

Instance Method Summary collapse

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(slide_template, markup_lang="textile")
  RedCloth.new(ERB.new(slide_template, 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