Class: JRuby::ScalaSupport::Map::Immutable

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/jruby/scala_support.rb

Instance Method Summary collapse

Methods included from Common

#[], #as_json, #each, #eql?, #has_key?, #key, #keys, #to_s, #value?, #values

Instance Method Details

#[]=(key, value) ⇒ Object

Raises:



172
173
174
175
# File 'lib/jruby/scala_support.rb', line 172

def []=(key, value)
  raise ImmutableException,
    "Cannot change #{key} on #{self} because it is immutable!"
end