module ConditionRed::Falsey

Public Instance Methods

and(&block) click to toggle source
# File lib/condition_red/truthiness.rb, line 32
def and &block
  self
end
if_false() { || ... } click to toggle source
# File lib/condition_red/truthiness.rb, line 27
def if_false &block
  yield
end
if_nil(&block) click to toggle source
# File lib/condition_red/truthiness.rb, line 30
def if_nil &block
end
if_true(&block) click to toggle source
# File lib/condition_red/truthiness.rb, line 25
def if_true &block
end
or() { || ... } click to toggle source
# File lib/condition_red/truthiness.rb, line 35
def or &block
  yield
end
this() click to toggle source
# File lib/condition_red/truthiness.rb, line 22
def this
  self
end