Sha256: 0ca5d47540dd744f3a198fb4af0727b7ffadd70492cdee59b17f03a01cc884df
Contents?: true
Size: 251 Bytes
Versions: 2
Compression:
Stored size: 251 Bytes
Contents
class FluQ::DSL::Base protected def constantize(*path) require([:fluq, *path].join('/')) names = path.map {|p| p.to_s.split('_').map(&:capitalize).join } names.inject(FluQ) {|klass, name| klass.const_get(name) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluq-0.8.1 | lib/fluq/dsl/base.rb |
fluq-0.8.0 | lib/fluq/dsl/base.rb |