A constant
If this constant is an alias for a module or class, this is the RDoc::ClassModule it is an alias for.
nil otherwise.
The constant’s name
The constant’s value
Creates a new constant with name, value and
comment
# File lib/rdoc/constant.rb, line 26
def initialize(name, value, comment)
  super()
  @name = name
  @value = value
  @is_alias_for = nil
  self.comment = comment
end
						Constants are ordered by name
# File lib/rdoc/constant.rb, line 37
def <=> other
  return unless self.class === other
  [parent_name, name] <=> [other.parent_name, other.name]
end
						A constant is documented if it has a comment, or is an alias for a documented class or module.
# File lib/rdoc/constant.rb, line 56
def documented?
  super or is_alias_for && is_alias_for.documented?
end
						Path to this constant
# File lib/rdoc/constant.rb, line 70
def path
  "#{@parent.path}##{@name}"
end
						| / | Search | 
|---|---|
| ? | Show this help |