Sha256: a4e171591542925a9331a052bc682ca3406036e1cbdecd816c78cd335603b628
Contents?: true
Size: 498 Bytes
Versions: 29
Compression:
Stored size: 498 Bytes
Contents
require 'nenv/version' require 'nenv/autoenvironment' require 'nenv/builder' def Nenv(namespace = nil) Nenv::AutoEnvironment.new(namespace).tap do |env| yield env if block_given? end end module Nenv class << self def respond_to?(meth) instance.respond_to?(meth) end def method_missing(meth, *args) instance.send(meth, *args) end def reset @instance = nil end def instance @instance ||= Nenv::AutoEnvironment.new end end end
Version data entries
29 entries across 29 versions & 10 rubygems