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
127 128 129 |
# File 'lib/marker/text.rb', line 127 def to_html( = {} ) "<b>#{bold_enclosed_text.to_html()}</b>" end |
#to_s(options = {}) ⇒ Object
131 132 133 |
# File 'lib/marker/text.rb', line 131 def to_s( = {} ) "*#{bold_enclosed_text.to_s()}*" end |