Class: Marker::HorizRule

Inherits:
ParseNode show all
Defined in:
lib/marker/text.rb

Instance Method Summary collapse

Methods inherited from Treetop::Runtime::SyntaxNode

#present?

Instance Method Details

#tObject



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( options = {} )
  "<hr />" +
  ( t ? "\n#{t.to_html(options)}" : "" )
end

#to_s(options = {}) ⇒ Object



115
116
117
118
119
# File 'lib/marker/text.rb', line 115

def to_s( options = {} )
  width = options[:width] || 80
  "-" * width +
  ( t ? "\n#{t.to_s(options)}" : "" )
end