Module: RubyFlipper::ObjectMixin
- Defined in:
- lib/ruby_flipper/object_mixin.rb
Instance Method Summary collapse
- #feature_active?(name, *args) ⇒ Boolean (also: #condition_met?)
Instance Method Details
#feature_active?(name, *args) ⇒ Boolean Also known as: condition_met?
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 |