Class: Marker::Markup
- Inherits:
-
RecursiveList
- Object
- Treetop::Runtime::SyntaxNode
- ParseNode
- RecursiveList
- Marker::Markup
- Defined in:
- lib/marker/markup.rb
Instance Method Summary collapse
Methods inherited from RecursiveList
Methods inherited from Treetop::Runtime::SyntaxNode
Instance Method Details
#to_html(options = {}) ⇒ Object
45 46 47 48 49 |
# File 'lib/marker/markup.rb', line 45 def to_html( = {} ) to_a.map{ |b| b.to_html() }.join("\n") end |
#to_s(options = {}) ⇒ Object
51 52 53 54 55 |
# File 'lib/marker/markup.rb', line 51 def to_s( = {} ) to_a.map{ |b| b.to_s() }.join("\n\n") end |