Module: Rabbit::SourceGenerator

Defined in:
lib/rabbit/source-generator.rb,
lib/rabbit/source-generator/rd.rb,
lib/rabbit/source-generator/hiki.rb,
lib/rabbit/source-generator/markdown.rb

Defined Under Namespace

Classes: Hiki, Markdown, RD

Class Method Summary collapse

Class Method Details

.find(markup_language) ⇒ Object


20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/rabbit/source-generator.rb', line 20

def find(markup_language)
  case markup_language
  when :rd
    RD.new
  when :hiki
    Hiki.new
  when :markdown
    Markdown.new
  else
    nil
  end
end