Class: Rabbit::Parser::Markdown::Converter

Inherits:
Object
  • Object
show all
Includes:
Element, GetText, PauseSupport
Defined in:
lib/rabbit/parser/markdown/converter.rb

Constant Summary

Constants included from GetText

GetText::DOMAIN

Instance Method Summary collapse

Methods included from PauseSupport

#burn_out_pause_targets, #pause_targets, #register_pause, #unregister_pause

Methods included from GetText

included

Constructor Details

#initialize(canvas) ⇒ Converter

Returns a new instance of Converter.


36
37
38
39
40
41
# File 'lib/rabbit/parser/markdown/converter.rb', line 36

def initialize(canvas)
  @canvas = canvas
  @slides = []
  @slide = nil
  @slide_property_mode = false
end

Instance Method Details

#convert(element, context = nil) ⇒ Object


43
44
45
46
47
# File 'lib/rabbit/parser/markdown/converter.rb', line 43

def convert(element, context=nil)
  method_name = "convert_#{element.type}"
  method_name << "_#{context}" if context
  __send__(method_name, element)
end