Exception: Xeroizer::MethodNotAllowed
- Inherits:
-
StandardError
- Object
- StandardError
- Xeroizer::MethodNotAllowed
- Defined in:
- lib/xeroizer/exceptions.rb
Instance Method Summary collapse
-
#initialize(klass, method) ⇒ MethodNotAllowed
constructor
A new instance of MethodNotAllowed.
- #message ⇒ Object
Constructor Details
#initialize(klass, method) ⇒ MethodNotAllowed
Returns a new instance of MethodNotAllowed.
64 65 66 67 |
# File 'lib/xeroizer/exceptions.rb', line 64 def initialize(klass, method) @klass = klass @method = method end |
Instance Method Details
#message ⇒ Object
69 70 71 |
# File 'lib/xeroizer/exceptions.rb', line 69 def "Method #{@method} not allowed on #{@klass}" end |