Class: Duby::JVM::Types::TypeFactory::ParanoidHash

Inherits:
Hash
  • Object
show all
Defined in:
lib/duby/jvm/types/factory.rb

Instance Method Summary collapse

Instance Method Details

#[]=(k, v) ⇒ Object

Raises:

  • (ArgumentError)


31
32
33
34
# File 'lib/duby/jvm/types/factory.rb', line 31

def []=(k, v)
  raise ArgumentError, "Can't store nil for key #{k.inspect}" if v.nil?
  super(k, v)
end