Module: BatchKit::HashExtensions

Defined in:
lib/batch-kit/core_ext/hash.rb

Instance Method Summary collapse

Instance Method Details

#to_cfgObject

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