Module: Ecolo::EnvWith
- Defined in:
- lib/ecolo.rb
Constant Summary collapse
- ACCESSOR =
[:env, :env=].freeze
- DELEGATE =
-> { ACCESSOR.each { |a| def_instance_delegator :@ecolo, a }; self }
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(base) ⇒ Object
15 16 17 18 |
# File 'lib/ecolo.rb', line 15 def self.extended(base) singleton_base = base.singleton_class.extend Forwardable singleton_base.class_exec &DELEGATE end |