Methods

Included Modules

RDoc::Constant

A constant

Attributes

name[RW]

The constant’s name

value[RW]

The constant’s value

Public Class Methods

new(name, value, comment) click to toggle source

Creates a new constant with name, value and comment

    # File lib/rdoc/constant.rb, line 21
21:   def initialize(name, value, comment)
22:     super()
23:     @name = name
24:     @value = value
25:     self.comment = comment
26:   end

Public Instance Methods

<=>(other) click to toggle source

Constants are ordered by name

    # File lib/rdoc/constant.rb, line 31
31:   def <=> other
32:     return unless self.class === other
33: 
34:     [parent_name, name] <=> [other.parent_name, other.name]
35:   end
==(other) click to toggle source
    # File lib/rdoc/constant.rb, line 37
37:   def == other
38:     self.class == other.class and
39:       @parent == other.parent and
40:       @name == other.name
41:   end
path() click to toggle source

Path to this constant

    # File lib/rdoc/constant.rb, line 53
53:   def path
54:     "#{@parent.path}##{@name}"
55:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.