Exception: Graphiti::Errors::AroundCallbackProc
- Defined in:
- lib/graphiti/errors.rb
Instance Method Summary collapse
-
#initialize(resource_class, method_name) ⇒ AroundCallbackProc
constructor
A new instance of AroundCallbackProc.
- #message ⇒ Object
Constructor Details
#initialize(resource_class, method_name) ⇒ AroundCallbackProc
Returns a new instance of AroundCallbackProc.
76 77 78 79 |
# File 'lib/graphiti/errors.rb', line 76 def initialize(resource_class, method_name) @resource_class = resource_class @method_name = method_name end |
Instance Method Details
#message ⇒ Object
81 82 83 84 85 |
# File 'lib/graphiti/errors.rb', line 81 def <<-MSG #{@resource_class}: Tried to pass block to .#{@method_name}, which only accepts a method name. MSG end |