Class RDoc::Attr
In: lib/rdoc/code_objects.rb
Parent: CodeObject

Represent attributes

Methods

<=>   new   to_s  

Attributes

name  [RW] 
rw  [RW] 
text  [RW] 
visibility  [RW] 

Public Class methods

[Source]

     # File lib/rdoc/code_objects.rb, line 722
722:     def initialize(text, name, rw, comment)
723:       super()
724:       @text = text
725:       @name = name
726:       @rw = rw
727:       @visibility = :public
728:       self.comment = comment
729:     end

Public Instance methods

[Source]

     # File lib/rdoc/code_objects.rb, line 735
735:     def <=>(other)
736:       self.name <=> other.name
737:     end

[Source]

     # File lib/rdoc/code_objects.rb, line 731
731:     def to_s
732:       "attr: #{self.name} #{self.rw}\n#{self.comment}"
733:     end

[Validate]