Skip to content

Commit

Permalink
fix: add blank? refinement for TrueClass and FalseClass
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 14, 2022
1 parent 552227d commit 05bb3be
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions lib/pact_broker/string_refinements.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
module PactBroker
module StringRefinements
refine TrueClass do
def blank?
false
end

def present?
true
end
end

refine FalseClass do
def blank?
false
end

def present?
true
end
end

refine NilClass do
def blank?
true
Expand Down

0 comments on commit 05bb3be

Please sign in to comment.