Class: RDocF95::RI::Constant
- Inherits:
-
NamedThing
- Object
- NamedThing
- RDocF95::RI::Constant
- Defined in:
- lib/rdoc-f95/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.
Instance Method Summary collapse
-
#initialize(name, value, comment) ⇒ Constant
constructor
A new instance of Constant.
Constructor Details
#initialize(name, value, comment) ⇒ Constant
Returns a new instance of Constant.
42 43 44 45 46 |
# File 'lib/rdoc-f95/ri/descriptions.rb', line 42 def initialize(name, value, comment) super(name) @value = value @comment = comment end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
41 42 43 |
# File 'lib/rdoc-f95/ri/descriptions.rb', line 41 def comment @comment end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
41 42 43 |
# File 'lib/rdoc-f95/ri/descriptions.rb', line 41 def value @value end |