Class: Marker::HorizRule
- Inherits:
-
ParseNode
- Object
- Treetop::Runtime::SyntaxNode
- ParseNode
- Marker::HorizRule
- Defined in:
- lib/marker/text.rb
Instance Method Summary collapse
Methods inherited from Treetop::Runtime::SyntaxNode
Instance Method Details
#t ⇒ Object
121 122 123 |
# File 'lib/marker/text.rb', line 121 def t nil end |
#to_html(options = {}) ⇒ Object
110 111 112 113 |
# File 'lib/marker/text.rb', line 110 def to_html( = {} ) "<hr />" + ( t ? "\n#{t.to_html()}" : "" ) end |
#to_s(options = {}) ⇒ Object
115 116 117 118 119 |
# File 'lib/marker/text.rb', line 115 def to_s( = {} ) width = [:width] || 80 "-" * width + ( t ? "\n#{t.to_s()}" : "" ) end |