Module: Greenenvy

Defined in:
lib/greenenvy.rb,
lib/greenenvy/loader.rb,
lib/greenenvy/context.rb,
lib/greenenvy/version.rb,
lib/greenenvy/exceptions.rb,
lib/greenenvy/name_checker.rb,
lib/greenenvy/name_validator.rb,
lib/greenenvy/open_struct_like.rb

Defined Under Namespace

Modules: Exceptions Classes: Context, InnerContext, Loader, NameChecker, NameValidator, OpenStructLike, OuterContext

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.load_env(env, dir) ⇒ Object



10
11
12
13
14
# File 'lib/greenenvy.rb', line 10

def self.load_env(env, dir)
  name_validator = NameValidator.new(NameChecker.new)
  loader = Loader.new(Context, name_validator, env, dir).load
  OpenStructLike.new(loader)
end