Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Matz says to raise TypeError in ruby-core:35859

  • Loading branch information...
commit 6812cd9fb87e17cf3aedccebd104d7958254cf98 1 parent 1cab645
@sunaku authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/kernel_hash.rb
View
2  lib/kernel_hash.rb
@@ -8,7 +8,7 @@ def Hash(value)
elsif value.nil? or Array(value).empty?
{}
else
- raise ArgumentError, "invalid value for Hash: #{value}"
+ raise TypeError, "invalid value for Hash: #{value}"
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.