Class: Eco::API::Common::Loaders::Session

Inherits:
Config show all
Defined in:
lib/eco/api/common/loaders/config/session.rb

Class Method Summary collapse

Methods inherited from Config

active_enviro, cli, config_block

Methods included from ClassHelpers

#class_resolver, #descendants, #descendants?, #inheritable_attrs, #inheritable_class_vars, #inherited, #instance_variable_name, #new_class, #resolve_class, #to_constant

Methods included from Language::Methods::DelegateMissing

#delegate_missing_to, #method_missing, #respond_to_missing?

Class Method Details

.configObject

This is a config tied to the current environment session.



4
5
6
7
8
# File 'lib/eco/api/common/loaders/config/session.rb', line 4

def config
  return @config if instance_variable_defined?(:@config)

  @config = super(key: super.apis.active_root_name)
end