Sha256: 0c94dae2f8c4f544ad10d523337ed10fb3878119c6c6f2372bbfa2a4fcd2f558

Contents?: true

Size: 304 Bytes

Versions: 4

Compression:

Stored size: 304 Bytes

Contents

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

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

      def value
        adapter.set_members key
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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