Sha256: 6aa70f3bffb4d1f8023009247ecc02a44daa3bd21444f53e79d5c08b0c7426ac
Contents?: true
Size: 428 Bytes
Versions: 3
Compression:
Stored size: 428 Bytes
Contents
require "redis" unless defined? Redis require "feature_guard/version" require "feature_guard/guard" module FeatureGuard class << self attr_writer :redis def redis @redis ||= Redis.new end [:allow?, :bump_ramp, :disable, :enable, :toggle, :enabled?, :ramp_val, :set_ramp].each do |mname| define_method(mname) do |key, *args| Guard.new(key).send(mname, *args) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
feature_guard-0.1.2 | lib/feature_guard.rb |
feature_guard-0.1.1 | lib/feature_guard.rb |
feature_guard-0.1.0 | lib/feature_guard.rb |