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 889
889:     def initialize(text, name, rw, comment)
890:       super()
891:       @text = text
892:       @name = name
893:       @rw = rw
894:       @visibility = :public
895:       self.comment = comment
896:     end

Public Instance methods

[Source]

     # File code_objects.rb, line 902
902:     def <=>(other)
903:       self.name <=> other.name
904:     end

[Source]

     # File code_objects.rb, line 898
898:     def to_s
899:       "attr: #{self.name} #{self.rw}\n#{self.comment}"
900:     end

[Validate]