diff options
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/hash.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mrblib/hash.rb b/mrblib/hash.rb index e3e709070..782111459 100644 --- a/mrblib/hash.rb +++ b/mrblib/hash.rb @@ -154,6 +154,7 @@ class Hash # # ISO 15.2.13.4.23 def replace(hash) + raise TypeError, "can't convert argument into Hash" unless hash.respond_to?(:to_hash) self.clear hash = hash.to_hash hash.each_key{|k| |
