Class | RI::ModuleDescription |
In: |
ri/ri_descriptions.rb
|
Parent: | Description |
attributes | [RW] | |
class_methods | [RW] | |
constants | [RW] | |
includes | [RW] | |
instance_methods | [RW] |
# File ri/ri_descriptions.rb, line 117 117: def merge(into, from) 118: names = {} 119: into.each {|i| names[i.name] = i } 120: from.each {|i| names[i.name] = i } 121: into.replace(names.keys.sort.map {|n| names[n]}) 122: end
merge in another class desscription into this one
# File ri/ri_descriptions.rb, line 89 89: def merge_in(old) 90: merge(@class_methods, old.class_methods) 91: merge(@instance_methods, old.instance_methods) 92: merge(@attributes, old.attributes) 93: merge(@constants, old.constants) 94: merge(@includes, old.includes) 95: if @comment.nil? || @comment.empty? 96: @comment = old.comment 97: else 98: unless old.comment.nil? or old.comment.empty? then 99: @comment << SM::Flow::RULE.new 100: @comment.concat old.comment 101: end 102: end 103: end
the ‘ClassDescription’ subclass overrides this to format up the name of a parent
# File ri/ri_descriptions.rb, line 111 111: def superclass_string 112: nil 113: end