Module: Wurk::IterableJob::MethodAddedGuard
- Defined in:
- lib/wurk/iterable_job.rb
Overview
Class-level guard injected via singleton-class prepend so we can call ‘super` cleanly and stay compatible with anything else hooking `method_added`.
Instance Method Summary collapse
Instance Method Details
#method_added(method_name) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/wurk/iterable_job.rb', line 48 def method_added(method_name) if method_name == :perform raise ArgumentError, "#{self} is an IterableJob; override #each_iteration instead of #perform" end super end |