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
89 90 91 |
# File 'lib/marker/text.rb', line 89 def t nil end |
#to_html(options = {}) ⇒ Object
78 79 80 81 |
# File 'lib/marker/text.rb', line 78 def to_html( = {} ) "<hr />" + ( t ? "\n#{t.to_html(options)}" : "" ) end |
#to_s(options = {}) ⇒ Object
83 84 85 86 87 |
# File 'lib/marker/text.rb', line 83 def to_s( = {} ) width = [:width] || 80 "-" * width + ( t ? "\n#{t.to_s(options)}" : "" ) end |