./lib/hash_wia/module.rb in hash_wia-0.7.11 vs ./lib/hash_wia/module.rb in hash_wia-0.7.12
- old
+ new
@@ -25,10 +25,10 @@
data
end
def []= key, value
if @frozen_keys && !keys.include?(key)
- raise NoMethodError, "HashWia keys are frozen and can't be modified (key: #{key})"
+ raise FrozenError, "HashWia keys are frozen and can't be modified (key: #{key})"
end
delete key
super key, value
end