Class: RDoc::RI::Constant
- Inherits:
-
NamedThing
- Object
- NamedThing
- RDoc::RI::Constant
- Defined in:
- lib/rdoc/ri/descriptions.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from NamedThing
Instance Method Summary collapse
-
#initialize(name, value, comment) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from NamedThing
Constructor Details
#initialize(name, value, comment) ⇒ Constant
Returns a new instance of Constant.
45 46 47 48 49 |
# File 'lib/rdoc/ri/descriptions.rb', line 45 def initialize(name, value, comment) super(name) @value = value @comment = comment end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
43 44 45 |
# File 'lib/rdoc/ri/descriptions.rb', line 43 def comment @comment end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
43 44 45 |
# File 'lib/rdoc/ri/descriptions.rb', line 43 def value @value end |