Class: Marker::Markup

Inherits:
RecursiveList show all
Defined in:
lib/marker/markup.rb

Instance Method Summary collapse

Methods inherited from RecursiveList

#r, #single?, #to_a

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#to_html(options = {}) ⇒ Object



45
46
47
48
49
# File 'lib/marker/markup.rb', line 45

def to_html( options = {} )
  to_a.map{ |b|
    b.to_html(options)
  }.join("\n")
end

#to_s(options = {}) ⇒ Object



51
52
53
54
55
# File 'lib/marker/markup.rb', line 51

def to_s( options = {} )
  to_a.map{ |b|
    b.to_s(options)
  }.join("\n\n")
end