0
0
Fork 0

Fix for raise ArgumentError

This commit is contained in:
Stormwind 2015-04-25 20:11:05 +02:00
parent 6c0705df3b
commit f825743491
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ module Rubella
def buckets= buckets
# Must be divideable by 100
if([1, 2, 5, 10, 20, 50].index(buckets) == nil)
raise ArgumentError, "Amount of buckets must be 1, 2, 5, 10, 20 or 50"
raise ArgumentError.new "Amount of buckets must be 1, 2, 5, 10, 20 "+
"or 50"
end
@steps = 100/buckets