Class: MarkdownConverter
- Inherits:
-
Object
- Object
- MarkdownConverter
- Includes:
- Singleton
- Defined in:
- lib/markdown-ruby-china.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.convert(text) ⇒ Object
78 79 80 |
# File 'lib/markdown-ruby-china.rb', line 78 def self.convert(text) self.instance.convert(text) end |
Instance Method Details
#convert(text) ⇒ Object
82 83 84 |
# File 'lib/markdown-ruby-china.rb', line 82 def convert(text) @converter.render(text) end |