class Module

Public Instance Methods

const_get_path(path) click to toggle source
# File lib/core_ext/module.rb, line 2
def const_get_path(path)
  path.split('::').reduce(self) do |m, current|
    m.const_get current.split('_').map(&:capitalize).join
  end
end