| Class | Delayed::PerformableMethod |
| In: |
lib/delayed/performable_method.rb
|
| Parent: | Struct.new(:object, :method, :args) |
| CLASS_STRING_FORMAT | = | /^CLASS\:([A-Z][\w\:]+)$/ |
| AR_STRING_FORMAT | = | /^AR\:([A-Z][\w\:]+)\:(\d+)$/ |
# File lib/delayed/performable_method.rb, line 6
6: def initialize(object, method, args)
7: raise NoMethodError, "undefined method `#{method}' for #{self.inspect}" unless object.respond_to?(method)
8:
9: self.object = dump(object)
10: self.args = args.map { |a| dump(a) }
11: self.method = method.to_sym
12: end