Method: RDoc::Parser::Ruby#create_module_alias

Defined in:
lib/rdoc/parser/ruby.rb

#create_module_alias(container, constant, rhs_name) ⇒ Object

Creates a module alias in container at rhs_name (or at the top-level for “::”) with the name from constant.



305
306
307
308
309
310
311
312
313
# File 'lib/rdoc/parser/ruby.rb', line 305

def create_module_alias container, constant, rhs_name # :nodoc:
  mod = if rhs_name =~ /^::/ then
          @store.find_class_or_module rhs_name
        else
          container.find_module_named rhs_name
        end

  container.add_module_alias mod, rhs_name, constant, @top_level
end