public Method

Dependencies.qualified_name_for(mod, name)

Return the constant path for the provided parent and constant name.

Source Code

# File active_support/dependencies.rb, line 213
def qualified_name_for(mod, name)
  mod_name = to_constant_name mod
  (%w(Object Kernel).include? mod_name) ? name.to_s : "#{mod_name}::#{name}"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.