Sha256: 6853f4dabee93dc3a42c0fbc0f52e50b98a3fba6ec5d43ac9e2c190387dca897
Contents?: true
Size: 517 Bytes
Versions: 3
Compression:
Stored size: 517 Bytes
Contents
require 'logger' require 'redis' module Ryespy module Listener class Base def initialize(opts = {}) @notifiers = opts[:notifiers] || [] @logger = opts[:logger] || Logger.new(nil) @redis = Redis.current connect_service if block_given? yield self close end end def close end private def connect_service end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ryespy-1.1.1 | lib/ryespy/listener/base.rb |
ryespy-1.1.0 | lib/ryespy/listener/base.rb |
ryespy-1.0.0 | lib/ryespy/listener/base.rb |