Sha256: 83aaffa3713748fd9a9f8b0e75d43f646392dfb9c0740b097b66f7c60375fc1d
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
module Egi VERSION = File.read(File.join(File.dirname(__FILE__), %w[ .. VERSION ])).chomp autoload :Sandbox, 'egi/sandbox' autoload :Env, 'egi/env' def [](name) @env.has_key?(name) ? @env[name] : nil end def load(str) @env = Sandbox.new.eval(str) end def reset @env = nil end module_function :[], :load, :reset end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
egi-0.0.1 | lib/egi.rb |