Class: RDoc::Markup::Rule
- Inherits:
-
Struct
- Object
- Struct
- RDoc::Markup::Rule
- Defined in:
- lib/rdoc/markup/rule.rb
Overview
A horizontal rule with a weight
Instance Attribute Summary collapse
-
#weight ⇒ Object
Returns the value of attribute weight.
Instance Method Summary collapse
-
#accept(visitor) ⇒ Object
Calls #accept_rule on
visitor
. -
#pretty_print(q) ⇒ Object
:nodoc:.
Instance Attribute Details
#weight ⇒ Object
Returns the value of attribute weight
4 5 6 |
# File 'lib/rdoc/markup/rule.rb', line 4 def weight @weight end |
Instance Method Details
#accept(visitor) ⇒ Object
Calls #accept_rule on visitor
9 10 11 |
# File 'lib/rdoc/markup/rule.rb', line 9 def accept visitor visitor.accept_rule self end |
#pretty_print(q) ⇒ Object
:nodoc:
13 14 15 16 17 |
# File 'lib/rdoc/markup/rule.rb', line 13 def pretty_print q # :nodoc: q.group 2, '[rule:', ']' do q.pp weight end end |