Class | RDoc::RI::ModuleDescription |
In: |
ri/descriptions.rb
|
Parent: | RDoc::RI::Description |
# File ri/descriptions.rb, line 112 112: def merge(into, from) 113: names = {} 114: into.each {|i| names[i.name] = i } 115: from.each {|i| names[i.name] = i } 116: into.replace(names.keys.sort.map {|n| names[n]}) 117: end
merge in another class desscription into this one
# File ri/descriptions.rb, line 84 84: def merge_in(old) 85: merge(@class_methods, old.class_methods) 86: merge(@instance_methods, old.instance_methods) 87: merge(@attributes, old.attributes) 88: merge(@constants, old.constants) 89: merge(@includes, old.includes) 90: if @comment.nil? || @comment.empty? 91: @comment = old.comment 92: else 93: unless old.comment.nil? or old.comment.empty? then 94: @comment << RDoc::Markup::Flow::RULE.new 95: @comment.concat old.comment 96: end 97: end 98: end
the ‘ClassDescription’ subclass overrides this to format up the name of a parent
# File ri/descriptions.rb, line 106 106: def superclass_string 107: nil 108: end