Module: Girdle::Helpers

Extended by:
Helpers
Included in:
Helpers, Job
Defined in:
lib/girdle/helpers.rb

Instance Method Summary collapse

Instance Method Details

#validate_options!(valid_options, options) ⇒ Object



5
6
7
8
9
10
# File 'lib/girdle/helpers.rb', line 5

def validate_options!(valid_options, options)
  options.each do |k,v|
    raise ArgumentError unless valid_options.include? k
  end
  true
end