Class: Concurrent::MultipleAssignmentError
Relationships & Source Files | |
Inherits: |
Concurrent::Error
|
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
- #inspection_data readonly
Instance Method Summary
Constructor Details
.new(message = nil, inspection_data = nil) ⇒ MultipleAssignmentError
# File 'lib/concurrent-ruby/concurrent/errors.rb', line 36
def initialize( = nil, inspection_data = nil) @inspection_data = inspection_data super 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