Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/core_ext/module.rb
Instance Method Summary collapse
Instance Method Details
#const_get_path(path) ⇒ Object
2 3 4 5 6 |
# 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 |