Exception: Gem::SafeMarshal::Visitors::ToRuby::UnpermittedIvarError

Inherits:
Error
  • Object
show all
Defined in:
lib/rubygems/safe_marshal/visitors/to_ruby.rb

Instance Method Summary collapse

Constructor Details

#initialize(symbol:, klass:, stack:) ⇒ UnpermittedIvarError

Returns a new instance of UnpermittedIvarError.



362
363
364
365
366
367
# File 'lib/rubygems/safe_marshal/visitors/to_ruby.rb', line 362

def initialize(symbol:, klass:, stack:)
  @symbol = symbol
  @klass = klass
  @stack = stack
  super "Attempting to set unpermitted ivar #{symbol.inspect} on object of class #{klass} @ #{stack.join "."}"
end