diff options
Diffstat (limited to 'mrblib')
| -rw-r--r-- | mrblib/hash.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/mrblib/hash.rb b/mrblib/hash.rb index 7d64addd7..61ede8137 100644 --- a/mrblib/hash.rb +++ b/mrblib/hash.rb @@ -145,26 +145,6 @@ class Hash end ## - # Replaces the contents of <i>hsh</i> with the contents of other hash - # - # ISO 15.2.13.4.23 - def replace(hash) - raise TypeError, "Hash required (#{hash.class} given)" unless Hash === hash - self.clear - hash.each_key{|k| - self[k] = hash[k] - } - if hash.default_proc - self.default_proc = hash.default_proc - else - self.default = hash.default - end - self - end - # ISO 15.2.13.4.17 - alias initialize_copy replace - - ## # Return a hash which contains the content of # +self+ and +other+. If a block is given # it will be called for each element with |
