Sha256: 5d46e7b04d3acb9f44d551399fd857197ca24fc28f0909461d19b1693ae6495e

Contents?: true

Size: 384 Bytes

Versions: 2

Compression:

Stored size: 384 Bytes

Contents

module Tabs
  module Config
    extend self

    def decimal_precision
      @decimal_precision ||= 5
    end

    def decimal_precision=(precision)
      @decimal_precision = precision
    end

    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

2 entries across 2 versions & 1 rubygems

Version Path
tabs-0.8.2 lib/tabs/config.rb
tabs-0.8.1 lib/tabs/config.rb