Class: RI::ModuleDescription

Inherits:
Object
  • Object
show all
Defined in:
lib/fastri/ri_index.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#merge_in(old) ⇒ Object

merge in another class desscription into this one



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/fastri/ri_index.rb', line 17

def merge_in(old)
  merge(@class_methods, old.class_methods)
  merge(@instance_methods, old.instance_methods)
  merge(@attributes, old.attributes)
  merge(@constants, old.constants)
  merge(@includes, old.includes)
  if @comment.nil? || @comment.empty?
    @comment = old.comment
  else
    unless old.comment.nil? or old.comment.empty? then
      @comment << SM::Flow::RULE.new
      @comment.concat old.comment
    end
  end
end