class RDoc::Constant
def <=> other
def <=> other return unless self.class === other [parent_name, name] <=> [other.parent_name, other.name] end
def == other
def == other self.class == other.class and @parent == other.parent and @name == other.name end
def initialize(name, value, comment)
def initialize(name, value, comment) super() @name = name @value = value self.comment = comment end
def inspect # :nodoc:
def inspect # :nodoc: "#<%s:0x%x %s::%s>" % [ self.class, object_id, parent_name, @name, ] end
def path
def path "#{@parent.path}##{@name}" end