Class RDoc::Attr
In: 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 code_objects.rb, line 837
837:     def initialize(text, name, rw, comment)
838:       super()
839:       @text = text
840:       @name = name
841:       @rw = rw
842:       @visibility = :public
843:       self.comment = comment
844:     end

Public Instance methods

[Source]

     # File code_objects.rb, line 850
850:     def <=>(other)
851:       self.name <=> other.name
852:     end

[Source]

     # File code_objects.rb, line 846
846:     def to_s
847:       "attr: #{self.name} #{self.rw}\n#{self.comment}"
848:     end

[Validate]