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.
75 76 77 78 |
# File 'lib/graphiti/errors.rb', line 75 def initialize(resource_class, method_name) @resource_class = resource_class @method_name = method_name end |
Instance Method Details
#message ⇒ Object
80 81 82 83 84 |
# File 'lib/graphiti/errors.rb', line 80 def <<~MSG #{@resource_class}: Tried to pass block to .#{@method_name}, which only accepts a method name. MSG end |