Commit d30aadf3 authored by INOUE Yasuyuki's avatar INOUE Yasuyuki

remove line number from raise message

parent e66d86a5
...@@ -12,7 +12,7 @@ class Hash ...@@ -12,7 +12,7 @@ class Hash
elsif o.respond_to?(:to_a) elsif o.respond_to?(:to_a)
h = Hash.new h = Hash.new
o.to_a.each do |i| o.to_a.each do |i|
raise ArgumentError, "wrong element type #{i.class} at #{__LINE__} (expected array)" unless i.respond_to?(:to_a) raise ArgumentError, "wrong element type #{i.class} (expected array)" unless i.respond_to?(:to_a)
k, v = nil k, v = nil
case i.size case i.size
when 2 when 2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment