Class: Marker::Bold

Inherits:
ParseNode show all
Defined in:
lib/marker/text.rb

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#to_html(options = {}) ⇒ Object



95
96
97
# File 'lib/marker/text.rb', line 95

def to_html( options = {} )
  "<b>#{bold_enclosed_text.to_html(options)}</b>"
end

#to_s(options = {}) ⇒ Object



99
100
101
# File 'lib/marker/text.rb', line 99

def to_s( options = {} )
  "*#{bold_enclosed_text.to_s(options)}*"
end