Class: MarkdownJ
- Inherits:
-
Object
- Object
- MarkdownJ
- Defined in:
- lib/markdown_j.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ MarkdownJ
constructor
A new instance of MarkdownJ.
- #to_html ⇒ Object
Constructor Details
#initialize(text) ⇒ MarkdownJ
Returns a new instance of MarkdownJ.
6 7 8 |
# File 'lib/markdown_j.rb', line 6 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/markdown_j.rb', line 4 def text @text end |
Instance Method Details
#to_html ⇒ Object
10 11 12 |
# File 'lib/markdown_j.rb', line 10 def to_html com.petebevin.markdown.MarkdownProcessor.new.markdown(@text) end |