Exception: Subaltern::NonWhitelistedClassError

Inherits:
SubalternError
  • Object
show all
Defined in:
lib/subaltern/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ NonWhitelistedClassError

Returns a new instance of NonWhitelistedClassError.



45
46
47
48
49
# File 'lib/subaltern/errors.rb', line 45

def initialize(klass)

  @klass = klass
  super("not whitelisted : #{klass.inspect}")
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



43
44
45
# File 'lib/subaltern/errors.rb', line 43

def klass
  @klass
end