Sha256: 7a07efdacc512ef2d0f0838d35b4509f2cf612091bd587390d58a1aa28963eda
Contents?: true
Size: 749 Bytes
Versions: 1
Compression:
Stored size: 749 Bytes
Contents
module Rego Version = '2.1.0' unless defined?(Version) def Rego.version Rego::Version end def Rego.dependencies { 'main' => [ 'main' , ' ~> 6.0' ] , 'map' => [ 'map' , ' ~> 6.6' ] , 'rb-fsevent' => [ 'rb-fsevent' , ' ~> 0.10' ] , } end def Rego.libdir(*args, &block) @libdir ||= File.expand_path(__FILE__).sub(/\.rb$/,'') args.empty? ? @libdir : File.join(@libdir, *args) ensure if block begin $LOAD_PATH.unshift(@libdir) block.call() ensure $LOAD_PATH.shift() end end end def Rego.load(*libs) libs = libs.join(' ').scan(/[^\s+]+/) Rego.libdir{ libs.each{|lib| Kernel.load(lib) } } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rego-2.1.0 | lib/rego/_lib.rb |