summaryrefslogtreecommitdiff
path: root/lib/rdoc/ri/ri_descriptions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/ri/ri_descriptions.rb')
-rw-r--r--lib/rdoc/ri/ri_descriptions.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/rdoc/ri/ri_descriptions.rb b/lib/rdoc/ri/ri_descriptions.rb
index f999057..47984cf 100644
--- a/lib/rdoc/ri/ri_descriptions.rb
+++ b/lib/rdoc/ri/ri_descriptions.rb
@@ -46,6 +46,14 @@ module RI
attr_accessor :superclass
attr_accessor :includes
+ # merge in another class desscription into this one
+ def merge_in(old)
+ @class_methods.concat(old.class_methods).sort!
+ @instance_methods.concat(old.instance_methods).sort!
+ @attributes.concat(old.attributes).sort!
+ @constants.concat(old.constants).sort!
+ @includes.concat(old.includes).sort!
+ end
end
class MethodDescription < Description