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.
50 51 52 53 |
# File 'lib/graphiti/errors.rb', line 50 def initialize(resource_class, method_name) @resource_class = resource_class @method_name = method_name end |
Instance Method Details
#message ⇒ Object
55 56 57 58 59 |
# File 'lib/graphiti/errors.rb', line 55 def <<-MSG #{@resource_class}: Tried to pass block to .#{@method_name}, which only accepts a method name. MSG end |