Class: Marker::VerbatimArea
- Inherits:
-
RecursiveList
- Object
- Treetop::Runtime::SyntaxNode
- ParseNode
- RecursiveList
- Marker::VerbatimArea
- Defined in:
- lib/marker/verbatim.rb
Instance Method Summary collapse
Methods inherited from RecursiveList
Methods inherited from Treetop::Runtime::SyntaxNode
Instance Method Details
#to_html(options = {}) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/marker/verbatim.rb', line 11 def to_html( = {} ) "<pre>\n" + to_a.map { |l| l.to_html() }.join("\n") + "\n</pre>" end |
#to_s(options = {}) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/marker/verbatim.rb', line 19 def to_s( = {} ) "-- \n" + to_a.map { |l| l.to_s() }.join("\n") + "\n-- " end |