Sha256: 2fc17bdae21c5059fbd1fc7292fd5eef6d15ff5a4dd138fa37435145e8460761

Contents?: true

Size: 173 Bytes

Versions: 13

Compression:

Stored size: 173 Bytes

Contents

class Module
  def const_get_path(path)
    path.split('::').reduce(self) do |m, current|
      m.const_get current.split('_').map(&:capitalize).join
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
uia-1.0 lib/core_ext/module.rb
uia-0.8 lib/core_ext/module.rb
uia-0.7 lib/core_ext/module.rb
uia-0.7.alpha.1 lib/core_ext/module.rb
uia-0.6 lib/core_ext/module.rb
uia-0.5 lib/core_ext/module.rb
uia-0.4.4 lib/core_ext/module.rb
uia-0.4.3 lib/core_ext/module.rb
uia-0.4.2 lib/core_ext/module.rb
uia-0.4.1 lib/core_ext/module.rb
uia-0.4 lib/core_ext/module.rb
uia-0.3.3 lib/core_ext/module.rb
uia-0.3.2 lib/core_ext/module.rb