Class: RDocF95::Constant
- Inherits:
-
CodeObject
- Object
- CodeObject
- RDocF95::Constant
- Defined in:
- lib/rdoc-f95/code_objects.rb
Overview
Represent a constant
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from CodeObject
#comment, #document_children, #document_self, #done_documenting, #force_documentation, #parent, #section, #viewer
Instance Method Summary collapse
-
#initialize(name, value, comment) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from CodeObject
attr_overridable, #remove_classes_and_modules, #remove_methods_etc, #start_doc, #stop_doc
Constructor Details
#initialize(name, value, comment) ⇒ Constant
Returns a new instance of Constant.
721 722 723 724 725 726 |
# File 'lib/rdoc-f95/code_objects.rb', line 721 def initialize(name, value, comment) super() @name = name @value = value self.comment = comment end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
719 720 721 |
# File 'lib/rdoc-f95/code_objects.rb', line 719 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
719 720 721 |
# File 'lib/rdoc-f95/code_objects.rb', line 719 def value @value end |