Class: RDocF95::RI::Constant

Inherits:
NamedThing
  • Object
show all
Defined in:
lib/rdoc-f95/ri/descriptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commentObject (readonly)

Returns the value of attribute comment


41
42
43
# File 'lib/rdoc-f95/ri/descriptions.rb', line 41

def comment
  @comment
end

#valueObject (readonly)

Returns the value of attribute value


41
42
43
# File 'lib/rdoc-f95/ri/descriptions.rb', line 41

def value
  @value
end