Sha256: 591f9aacbe7769e31023349bdcdebffc7f4bed8f13a8a1df747fad5ad51d719b

Contents?: true

Size: 234 Bytes

Versions: 12

Compression:

Stored size: 234 Bytes

Contents

module Tabs
  module Config
    extend self

    def redis=(arg)
      if arg.is_a?(Redis)
        @redis = arg
      else
        @redis = Redis.new(arg)
      end
    end

    def redis
      @redis ||= Redis.new
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
tabs-0.8.0 lib/tabs/config.rb
tabs-0.7.1 lib/tabs/config.rb
tabs-0.7.0 lib/tabs/config.rb
tabs-0.6.3 lib/tabs/config.rb
tabs-0.6.2 lib/tabs/config.rb
tabs-0.6.1 lib/tabs/config.rb
tabs-0.5.6 lib/tabs/config.rb
tabs-0.5.5 lib/tabs/config.rb
tabs-0.5.4 lib/tabs/config.rb
tabs-0.5.3 lib/tabs/config.rb
tabs-0.5.2 lib/tabs/config.rb
tabs-0.5.0 lib/tabs/config.rb