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
      5 6 7  | 
    
      # File 'lib/rdoc/markup/rule.rb', line 5 def weight @weight end  | 
  
Instance Method Details
#accept(visitor) ⇒ Object
Calls #accept_rule on visitor
      10 11 12  | 
    
      # File 'lib/rdoc/markup/rule.rb', line 10 def accept visitor visitor.accept_rule self end  | 
  
#pretty_print(q) ⇒ Object
:nodoc:
      14 15 16 17 18  | 
    
      # File 'lib/rdoc/markup/rule.rb', line 14 def pretty_print q # :nodoc: q.group 2, '[rule:', ']' do q.pp weight end end  |