Module: BatchKit::HashExtensions
- Defined in:
- lib/batch-kit/core_ext/hash.rb
Instance Method Summary collapse
-
#to_cfg ⇒ Object
Converts a Hash object to a BatchKit::Config object.
Instance Method Details
#to_cfg ⇒ Object
Converts a Hash object to a BatchKit::Config object
6 7 8 |
# File 'lib/batch-kit/core_ext/hash.rb', line 6 def to_cfg self.is_a?(BatchKit::Config) ? self : BatchKit::Config.new(self) end |