Class: MuleMigrations::InternalConfigurationsProxy
- Inherits:
-
Object
- Object
- MuleMigrations::InternalConfigurationsProxy
- Defined in:
- lib/mule_migrations/configurator.rb
Instance Method Summary collapse
-
#initialize(configurations) ⇒ InternalConfigurationsProxy
constructor
A new instance of InternalConfigurationsProxy.
- #on(config_key) ⇒ Object
Constructor Details
#initialize(configurations) ⇒ InternalConfigurationsProxy
Returns a new instance of InternalConfigurationsProxy.
7 8 9 |
# File 'lib/mule_migrations/configurator.rb', line 7 def initialize(configurations) @configurations = configurations end |
Instance Method Details
#on(config_key) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/mule_migrations/configurator.rb', line 11 def on(config_key) if @configurations[config_key] && block_given? @configurations[config_key] = yield(@configurations[config_key]) || @configurations[config_key] end @configurations[config_key] end |