123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::MultipleAssignmentError

Relationships & Source Files
Inherits: Concurrent::Error
  • ::Object
Defined in: lib/concurrent-ruby/concurrent/errors.rb

Overview

Raised when an attempt is made to modify an immutable object (such as an IVar) after its final state has been set.

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(message = nil, inspection_data = nil) ⇒ MultipleAssignmentError

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/errors.rb', line 36

def initialize(message = nil, inspection_data = nil)
  @inspection_data = inspection_data
  super message
end

Instance Attribute Details

#inspection_data (readonly)

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/errors.rb', line 34

attr_reader :inspection_data

Instance Method Details

#inspect

[ GitHub ]

  
# File 'lib/concurrent-ruby/concurrent/errors.rb', line 41

def inspect
  format '%s %s>', super[0..-2], @inspection_data.inspect
end