Sha256: 71955401e56b71f3528f8a606561463bbb0f4ccc8ce1b7a2fdade52c6ef86890

Contents?: true

Size: 253 Bytes

Versions: 12

Compression:

Stored size: 253 Bytes

Contents

module Magent
  def self.push(channel_name, method, *args)
    self.channel(channel_name.to_s).enqueue(method, args)
  end

  def self.channel(name)
    self.channels[name] ||= Channel.new(name)
  end

  def self.channels
    @channels ||= {}
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
magent-0.4.2 lib/magent/push.rb
thirtysixthspan-magent-0.4.1 lib/magent/push.rb
magent-0.4 lib/magent/push.rb
magent-0.3 lib/magent/push.rb
magent-0.2 lib/magent/push.rb
magent-0.1.3 lib/magent/push.rb
magent-0.1.2 lib/magent/push.rb
magent-0.1.1 lib/magent/push.rb
magent-0.1.0 lib/magent/push.rb
magent-0.0.3 lib/magent/push.rb
magent-0.0.2 lib/magent/push.rb
magent-0.0.1 lib/magent/push.rb