Module: Delayed::MessageSending
- Defined in:
- lib/delayed/message_sending.rb
Instance Method Summary collapse
- #delay(options = {}) ⇒ Object (also: #__delay__)
- #send_at(time, method, *args) ⇒ Object
- #send_later(method, *args) ⇒ Object
Instance Method Details
#delay(options = {}) ⇒ Object Also known as: __delay__
27 28 29 |
# File 'lib/delayed/message_sending.rb', line 27 def delay( = {}) DelayProxy.new(PerformableMethod, self, ) end |
#send_at(time, method, *args) ⇒ Object
37 38 39 40 |
# File 'lib/delayed/message_sending.rb', line 37 def send_at(time, method, *args) warn '[DEPRECATION] `object.send_at(time, :method)` is deprecated. Use `object.delay(:run_at => time).method' __delay__(:run_at => time).__send__(method, *args) end |
#send_later(method, *args) ⇒ Object
32 33 34 35 |
# File 'lib/delayed/message_sending.rb', line 32 def send_later(method, *args) warn '[DEPRECATION] `object.send_later(:method)` is deprecated. Use `object.delay.method' __delay__.__send__(method, *args) end |