Class: RDoc::RI::Constant

Inherits:
NamedThing show all
Defined in:
lib/rdoc/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.



45
46
47
48
49
# File 'lib/rdoc/ri/descriptions.rb', line 45

def initialize(name, value, comment)
  super(name)
  @value = value
  @comment = comment
end

Instance Attribute Details

#commentObject (readonly)

Returns the value of attribute comment.



43
44
45
# File 'lib/rdoc/ri/descriptions.rb', line 43

def comment
  @comment
end

#valueObject (readonly)

Returns the value of attribute value.



43
44
45
# File 'lib/rdoc/ri/descriptions.rb', line 43

def value
  @value
end