Class: RI::Constant
- Inherits:
-
NamedThing
- Object
- NamedThing
- RI::Constant
- Defined in:
- lib/rdoc/ri/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.
43 44 45 46 47 |
# File 'lib/rdoc/ri/ri_descriptions.rb', line 43 def initialize(name, value, comment) super(name) @value = value @comment = comment end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment
42 43 44 |
# File 'lib/rdoc/ri/ri_descriptions.rb', line 42 def comment @comment end |
#value ⇒ Object (readonly)
Returns the value of attribute value
42 43 44 |
# File 'lib/rdoc/ri/ri_descriptions.rb', line 42 def value @value end |