Class: Marker::Paragraph
- Inherits:
-
ParseNode
- Object
- Treetop::Runtime::SyntaxNode
- ParseNode
- Marker::Paragraph
- Defined in:
- lib/marker/text.rb
Instance Method Summary collapse
Methods inherited from Treetop::Runtime::SyntaxNode
Instance Method Details
#to_html(options = {}) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/marker/text.rb', line 11 def to_html( = {} ) if text.no_wrap? text.to_html() else "<p>#{text.to_html()}</p>" end end |
#to_s(options = {}) ⇒ Object
19 20 21 |
# File 'lib/marker/text.rb', line 19 def to_s( = {} ) text.to_s() end |