Exception: Subaltern::NonWhitelistedClassError
- Inherits:
-
SubalternError
- Object
- RuntimeError
- SubalternError
- Subaltern::NonWhitelistedClassError
- Defined in:
- lib/subaltern/errors.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass) ⇒ NonWhitelistedClassError
constructor
A new instance of NonWhitelistedClassError.
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
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
43 44 45 |
# File 'lib/subaltern/errors.rb', line 43 def klass @klass end |