Class: RDocF95::Constant

Inherits:
CodeObject show all
Defined in:
lib/rdoc-f95/code_objects.rb

Overview

Represent a constant

Instance Attribute Summary collapse

Attributes inherited from CodeObject

#comment, #document_children, #document_self, #done_documenting, #force_documentation, #parent, #section, #viewer

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



719
720
721
# File 'lib/rdoc-f95/code_objects.rb', line 719

def name
  @name
end

#valueObject

Returns the value of attribute value.



719
720
721
# File 'lib/rdoc-f95/code_objects.rb', line 719

def value
  @value
end