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, #has_key?, #to_s

Instance Method Details

#[]=(key, value) ⇒ Object

Raises:



111
112
113
114
# File 'lib/jruby/scala_support.rb', line 111

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