Class RDoc::Attr
In: code_objects.rb
doc-tmp/rdoc/code_objects.rb
Parent: CodeObject

Represent attributes

Methods

<=>   <=>   new   new   to_s   to_s  

Public Class methods

[Source]

     # File doc-tmp/rdoc/code_objects.rb, line 733
733:     def initialize(text, name, rw, comment)
734:       super()
735:       @text = text
736:       @name = name
737:       @rw = rw
738:       @visibility = :public
739:       self.comment = comment
740:     end

[Source]

     # File code_objects.rb, line 733
733:     def initialize(text, name, rw, comment)
734:       super()
735:       @text = text
736:       @name = name
737:       @rw = rw
738:       @visibility = :public
739:       self.comment = comment
740:     end

Public Instance methods

[Source]

     # File doc-tmp/rdoc/code_objects.rb, line 746
746:     def <=>(other)
747:       self.name <=> other.name
748:     end

[Source]

     # File code_objects.rb, line 746
746:     def <=>(other)
747:       self.name <=> other.name
748:     end

[Source]

     # File doc-tmp/rdoc/code_objects.rb, line 742
742:     def to_s
743:       "attr: #{self.name} #{self.rw}\n#{self.comment}"
744:     end

[Source]

     # File code_objects.rb, line 742
742:     def to_s
743:       "attr: #{self.name} #{self.rw}\n#{self.comment}"
744:     end

[Validate]