Module: Nenv

Defined in:
lib/nenv.rb,
lib/nenv/builder.rb,
lib/nenv/version.rb,
lib/nenv/environment.rb,
lib/nenv/autoenvironment.rb,
lib/nenv/environment/dumper.rb,
lib/nenv/environment/loader.rb,
lib/nenv/environment/dumper/default.rb,
lib/nenv/environment/loader/default.rb,
lib/nenv/environment/loader/predicate.rb

Defined Under Namespace

Modules: Builder Classes: AutoEnvironment, Environment

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.instanceObject



26
27
28
# File 'lib/nenv.rb', line 26

def instance
  @instance ||= Nenv::AutoEnvironment.new
end

.method_missing(meth, *args) ⇒ Object



18
19
20
# File 'lib/nenv.rb', line 18

def method_missing(meth, *args)
  instance.send(meth, *args)
end

.resetObject



22
23
24
# File 'lib/nenv.rb', line 22

def reset
  @instance = nil
end

.respond_to?(meth) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/nenv.rb', line 14

def respond_to?(meth)
  instance.respond_to?(meth)
end