module Concurrent::MutableStruct
def merge(other, &block)
-
(ArgumentError)
- of given a member that is not defined in the struct
Returns:
-
(Synchronization::AbstractStruct)
- a new struct with the new values
Other tags:
- Yieldparam: othervalue - the value of the member in `other`
Yieldparam: selfvalue - the value of the member in `self`
Yieldparam: member - the name of the member which is duplicated
Other tags:
- Yield: - an options block for resolving duplicate keys
Parameters:
-
other
(Hash
) -- the hash from which to set the new values
def merge(other, &block) synchronize { ns_merge(other, &block) } end