Exception: Subaltern::BlacklistedMethodError
- Inherits:
-
SubalternError
- Object
- RuntimeError
- SubalternError
- Subaltern::BlacklistedMethodError
- 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) ⇒ BlacklistedMethodError
constructor
A new instance of BlacklistedMethodError.
Constructor Details
#initialize(klass, meth) ⇒ BlacklistedMethodError
Returns a new instance of BlacklistedMethodError.
33 34 35 36 37 38 |
# File 'lib/subaltern/errors.rb', line 33 def initialize(klass, meth) @klass = klass @method = meth super("blacklisted : #meth (in this case : #{klass.inspect})") end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
31 32 33 |
# File 'lib/subaltern/errors.rb', line 31 def klass @klass end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
31 32 33 |
# File 'lib/subaltern/errors.rb', line 31 def method @method end |