Sha256: 210378d97602e7b88fbc089b96ec77e2beefafb2b0b696aebe1402d9c63c0515
Contents?: true
Size: 525 Bytes
Versions: 3
Compression:
Stored size: 525 Bytes
Contents
module Tap module Test class Env def path(type) [File.expand_path(type.to_s)] end def constant(const_str, type=nil) return const_str if const_str.kind_of?(Module) begin current = Object const_str.split(/::/).each do |const_name| current = current.const_get(const_name) end current rescue(NameError) raise "uninitialized constant: #{const_str.inspect}" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tap-test-0.7.0 | lib/tap/test/env.rb |
tap-test-0.6.1 | lib/tap/test/env.rb |
tap-test-0.6.0 | lib/tap/test/env.rb |