Method: SlideDown#initialize
- Defined in:
- lib/slidedown.rb
#initialize(raw, opts = {}) ⇒ SlideDown
Ensures that the first slide has proper !SLIDE declaration
49 50 51 52 53 54 55 |
# File 'lib/slidedown.rb', line 49 def initialize(raw, opts = {}) @raw = raw =~ /\A!SLIDE/ ? raw : "!SLIDE\n#{raw}" extract_classes! self.stylesheets = opts[:stylesheets] || local_stylesheets self.title = opts[:title] || "Slides" end |