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



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( options = {} )
  "<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( options = {} )
  width = options[:width] || 80
  "-" * width +
  ( t ? "\n#{t.to_s(options)}" : "" )
end