Module: RubyFlipper::ObjectMixin

Defined in:
lib/ruby_flipper/object_mixin.rb

Instance Method Summary collapse

Instance Method Details

#feature_active?(name, *args) ⇒ Boolean Also known as: condition_met?

Returns:

  • (Boolean)


5
6
7
8
9
# File 'lib/ruby_flipper/object_mixin.rb', line 5

def feature_active?(name, *args)
  active = Feature.find(name).active?(*args)
  yield if active && block_given?
  active
end