Exception: Subaltern::NonWhitelistedMethodError
- Inherits:
-
SubalternError
- Object
- RuntimeError
- SubalternError
- Subaltern::NonWhitelistedMethodError
- Defined in:
- lib/subaltern/errors.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(klass, meth) ⇒ NonWhitelistedMethodError
constructor
A new instance of NonWhitelistedMethodError.
Constructor Details
#initialize(klass, meth) ⇒ NonWhitelistedMethodError
Returns a new instance of NonWhitelistedMethodError.
56 57 58 59 60 61 |
# File 'lib/subaltern/errors.rb', line 56 def initialize(klass, meth) @klass = klass @method = meth super("not whitelisted : #{klass.inspect}##{meth}") end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
54 55 56 |
# File 'lib/subaltern/errors.rb', line 54 def klass @klass end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
54 55 56 |
# File 'lib/subaltern/errors.rb', line 54 def method @method end |