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 841
841:     def initialize(text, name, rw, comment)
842:       super()
843:       @text = text
844:       @name = name
845:       @rw = rw
846:       @visibility = :public
847:       self.comment = comment
848:     end

Public Instance methods

[Source]

     # File code_objects.rb, line 854
854:     def <=>(other)
855:       self.name <=> other.name
856:     end

[Source]

     # File code_objects.rb, line 850
850:     def to_s
851:       "attr: #{self.name} #{self.rw}\n#{self.comment}"
852:     end

[Validate]