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.



386
387
388
389
390
391
# File 'lib/rubygems/safe_marshal/visitors/to_ruby.rb', line 386

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