remove unnecessary ".!"; ref #3261

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-11-22 16:55:18 +09:00
parent bbaf3c242d
commit a70104798e
+1 -1
View File
@@ -15,7 +15,7 @@ class Range
raise ArgumentError, "wrong number of arguments (given #{args.length}, expected 1)" unless args.length == 1
nv = args[0]
raise TypeError, "no implicit conversion from nil to integer" unless nv.nil?.!
raise TypeError, "no implicit conversion from nil to integer" if nv.nil?
raise TypeError, "no implicit conversion of #{nv.class} into Integer" unless nv.respond_to?(:to_int)
n = nv.to_int
raise TypeError, "no implicit conversion of #{nv.class} into Integer" unless n.kind_of?(Integer)