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



127
128
129
# File 'lib/marker/text.rb', line 127

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

#to_s(options = {}) ⇒ Object



131
132
133
# File 'lib/marker/text.rb', line 131

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