summaryrefslogtreecommitdiff
path: root/lib/rdoc/ri/descriptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/ri/descriptions.rb')
-rw-r--r--lib/rdoc/ri/descriptions.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rdoc/ri/descriptions.rb b/lib/rdoc/ri/descriptions.rb
index 9887862e0a..adc3e7774b 100644
--- a/lib/rdoc/ri/descriptions.rb
+++ b/lib/rdoc/ri/descriptions.rb
@@ -13,6 +13,7 @@ class RDoc::RI::NamedThing
def initialize(name)
@name = name
end
+
def <=>(other)
@name <=> other.name
end
@@ -30,6 +31,7 @@ class RDoc::RI::AliasName < RDoc::RI::NamedThing; end
class RDoc::RI::Attribute < RDoc::RI::NamedThing
attr_reader :rw, :comment
+
def initialize(name, rw, comment)
super(name)
@rw = rw
@@ -39,6 +41,7 @@ end
class RDoc::RI::Constant < RDoc::RI::NamedThing
attr_reader :value, :comment
+
def initialize(name, value, comment)
super(name)
@value = value