Class: Occson::Rails::EnvironmentStorer
- Inherits:
-
Object
- Object
- Occson::Rails::EnvironmentStorer
- Defined in:
- lib/occson/rails/environment_storer.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(environment) ⇒ EnvironmentStorer
constructor
A new instance of EnvironmentStorer.
Constructor Details
#initialize(environment) ⇒ EnvironmentStorer
Returns a new instance of EnvironmentStorer.
4 5 6 |
# File 'lib/occson/rails/environment_storer.rb', line 4 def initialize(environment) @environment = environment end |
Instance Method Details
#call ⇒ Object
8 9 10 11 12 |
# File 'lib/occson/rails/environment_storer.rb', line 8 def call @environment.each do |key, value| ENV.store(key, value) end end |