module ConditionRed::Truthy

Public Instance Methods

and() { || ... } click to toggle source
# File lib/condition_red/truthiness.rb, line 13
def and &block
  yield
end
if_false(&block) click to toggle source
# File lib/condition_red/truthiness.rb, line 9
def if_false &block
end
if_nil(&block) click to toggle source
# File lib/condition_red/truthiness.rb, line 11
def if_nil &block
end
if_true() { || ... } click to toggle source
# File lib/condition_red/truthiness.rb, line 6
def if_true &block
  yield
end
or(&block) click to toggle source
# File lib/condition_red/truthiness.rb, line 16
def or &block
  self
end
this() click to toggle source
# File lib/condition_red/truthiness.rb, line 3
def this
  self
end