Class: JRuby::ScalaSupport::Set::Immutable

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

Instance Method Summary collapse

Methods included from Common

#+, #-, #each, #to_s

Instance Method Details

#add(o) ⇒ Object

Raises:



227
228
229
230
# File 'lib/jruby/scala_support.rb', line 227

def add(o)
  raise ImmutableException,
    "Cannot add #{o} to #{self}: immutable collection"
end

#delete(o) ⇒ Object

Raises:



232
233
234
235
# File 'lib/jruby/scala_support.rb', line 232

def delete(o)
  raise ImmutableException,
    "Cannot delete #{o} from #{self}: immutable collection"
end