Class: Marker::Bold
- Inherits:
-
ParseNode
- Object
- Treetop::Runtime::SyntaxNode
- ParseNode
- Marker::Bold
- Defined in:
- lib/marker/text.rb
Instance Method Summary collapse
Methods inherited from Treetop::Runtime::SyntaxNode
Instance Method Details
#to_html(options = {}) ⇒ Object
95 96 97 |
# File 'lib/marker/text.rb', line 95 def to_html( = {} ) "<b>#{bold_enclosed_text.to_html()}</b>" end |
#to_s(options = {}) ⇒ Object
99 100 101 |
# File 'lib/marker/text.rb', line 99 def to_s( = {} ) "*#{bold_enclosed_text.to_s()}*" end |