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 1030
1030:     def initialize(text, name, rw, comment)
1031:       super()
1032:       @text = text
1033:       @name = name
1034:       @rw = rw
1035:       @visibility = :public
1036:       self.comment = comment
1037:     end

Public Instance methods

[Source]

      # File code_objects.rb, line 1043
1043:     def <=>(other)
1044:       self.name <=> other.name
1045:     end

[Source]

      # File code_objects.rb, line 1039
1039:     def to_s
1040:       "attr: #{self.name} #{self.rw}\n#{self.comment}"
1041:     end

[Validate]