Sha256: e0eb862f3199317ae91dab11b1e6003448a288dcb6a0cf946b309785cbca33bb

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

module Flipper
  module Toggles
    class Value < Toggle
      def enable(thing)
        adapter.write key, thing.enabled_value
      end

      def disable(thing)
        adapter.write key, thing.disabled_value
      end

      def value
        adapter.read key
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flipper-0.2.1 lib/flipper/toggles/value.rb
flipper-0.2.0 lib/flipper/toggles/value.rb
flipper-0.1.1 lib/flipper/toggles/value.rb
flipper-0.1.0 lib/flipper/toggles/value.rb