delete options in Consumer#initialize before passing along

This commit is contained in:
Ben Osheroff 2015-04-27 10:12:31 -07:00
parent 6db14ceeb7
commit 71c21d327e
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ module Hermann
def require_values_at(opts, *args)
args.map do |a|
raise "Please provide :#{a} option!" unless opts[a]
opts[a]
opts.delete(a)
end
end
end