Class: RI::Constant

Inherits:
NamedThing show all
Defined in:
lib/rdoc/ri/ri_descriptions.rb

Instance Attribute Summary collapse

Attributes inherited from NamedThing

#name

Instance Method Summary collapse

Methods inherited from NamedThing

#<=>, #eql?, #hash

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

#commentObject (readonly)

Returns the value of attribute comment



42
43
44
# File 'lib/rdoc/ri/ri_descriptions.rb', line 42

def comment
  @comment
end

#valueObject (readonly)

Returns the value of attribute value



42
43
44
# File 'lib/rdoc/ri/ri_descriptions.rb', line 42

def value
  @value
end