Class: RDoc::RI::Attribute

Inherits:
NamedThing show all
Defined in:
lib/rdoc/ri/descriptions.rb

Instance Attribute Summary collapse

Attributes inherited from NamedThing

#name

Instance Method Summary collapse

Methods inherited from NamedThing

#<=>, #eql?, #hash

Constructor Details

#initialize(name, rw, comment) ⇒ Attribute

Returns a new instance of Attribute.



35
36
37
38
39
# File 'lib/rdoc/ri/descriptions.rb', line 35

def initialize(name, rw, comment)
  super(name)
  @rw = rw
  @comment = comment
end

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



33
34
35
# File 'lib/rdoc/ri/descriptions.rb', line 33

def comment
  @comment
end

#rwObject (readonly)

Returns the value of attribute rw.



33
34
35
# File 'lib/rdoc/ri/descriptions.rb', line 33

def rw
  @rw
end