Class: NowAndLater::Queue

Inherits:
Object
  • Object
show all
Defined in:
lib/now_and_later/queue.rb

Class Method Summary collapse

Class Method Details

.add(service, *args) ⇒ Object

public class method for enqueuing services



9
10
11
# File 'lib/now_and_later/queue.rb', line 9

def self.add(service,*args)
  current.send :add, service, *args
end

.currentObject

current queue instance



4
5
6
# File 'lib/now_and_later/queue.rb', line 4

def self.current
  @@current ||= new
end