Method: Weak::Map#replace
- Defined in:
- lib/weak/map.rb
#replace(map) ⇒ self
Replaces the contents of self with the contents of the given Hash-like
object and returns self.
If the given map defines a #default value or #default_proc, this
will also replace the respective seting in self.
638 639 640 |
# File 'lib/weak/map.rb', line 638 def replace(map) initialize_copy(_implicit(map)) end |