Sha256: cf39587697882197ec77c7f05b66059e1c9e0e5e344ef10a239001d0958d35db
Contents?: true
Size: 458 Bytes
Versions: 5
Compression:
Stored size: 458 Bytes
Contents
require './example_setup' require 'flipper' require 'flipper/adapters/memory' # pick an adapter adapter = Flipper::Adapters::Memory.new # get a handy dsl instance flipper = Flipper.new(adapter) # grab a feature search = flipper[:search] perform = lambda do # check if that feature is enabled if search.enabled? puts 'Search away!' else puts 'No search for you!' end end perform.call puts 'Enabling Search...' search.enable perform.call
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
flipper-0.3.0 | examples/basic.rb |
flipper-0.2.1 | examples/basic.rb |
flipper-0.2.0 | examples/basic.rb |
flipper-0.1.1 | examples/basic.rb |
flipper-0.1.0 | examples/basic.rb |