Class: RI::Attribute
- Inherits:
-
NamedThing
- Object
- NamedThing
- RI::Attribute
- Defined in:
- lib/rdoc/ri/ri_descriptions.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#rw ⇒ Object
readonly
Returns the value of attribute rw.
Attributes inherited from NamedThing
Instance Method Summary collapse
-
#initialize(name, rw, comment) ⇒ Attribute
constructor
A new instance of Attribute.
Methods inherited from NamedThing
Constructor Details
#initialize(name, rw, comment) ⇒ Attribute
Returns a new instance of Attribute.
34 35 36 37 38 |
# File 'lib/rdoc/ri/ri_descriptions.rb', line 34 def initialize(name, rw, comment) super(name) @rw = rw @comment = comment end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment
33 34 35 |
# File 'lib/rdoc/ri/ri_descriptions.rb', line 33 def comment @comment end |
#rw ⇒ Object (readonly)
Returns the value of attribute rw
33 34 35 |
# File 'lib/rdoc/ri/ri_descriptions.rb', line 33 def rw @rw end |