Sha256: 6775debd16157854488542d2cf0bfb57374d19b4b7bf778c90cc55cf2cfb9b00

Contents?: true

Size: 355 Bytes

Versions: 6

Compression:

Stored size: 355 Bytes

Contents

class Redis
  class Subscription	
    def subscribe(&block)
      if block_given? then @subscribe = block else @subscribe end
    end
  
    def unsubscribe(&block)	
      if block_given? then @unsubscribe = block else @unsubscribe end
    end
  
    def message(&block)	
      if block_given? then @message = block else @message end
    end
  	
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
redis-1.0.7 lib/redis/subscribe.rb
redis-1.0.6 lib/redis/subscribe.rb
dsander-redis-1.0.6 lib/redis/subscribe.rb
redis-1.0.5 lib/redis/subscribe.rb
redis-1.0.4 lib/redis/subscribe.rb
redis-1.0.3 lib/redis/subscribe.rb