Skip to content

Commit

Permalink
Adds method disabled, inverse of enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kinduff committed Jan 26, 2021
1 parent 512782d commit 80dec4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/flipper/gate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ def enabled?(_value)
raise 'Not implemented'
end

def disabled?(_value)
!enabled?
end

# Internal: Check if a gate is open for a thing. Implemented in subclass.
#
# Returns true if gate open for thing, false if not.
Expand Down

0 comments on commit 80dec4a

Please sign in to comment.