Pattern: Missing use of Hash#[]=
Issue: -
This rule identifies places where Hash#merge!
can be replaced by Hash#[]=
.
hash.merge!(a: 1)
hash.merge!({'key' => 'value'})
hash.merge!(a: 1, b: 2)
Attribute | Value |
---|---|
MaxKeyValuePairs | 2 |
Pattern: Missing use of Hash#[]=
Issue: -
This rule identifies places where Hash#merge!
can be replaced by Hash#[]=
.
hash.merge!(a: 1)
hash.merge!({'key' => 'value'})
hash.merge!(a: 1, b: 2)
Attribute | Value |
---|---|
MaxKeyValuePairs | 2 |