Module: MuchBoolean::Mapping

Defined in:
lib/much-boolean.rb

Class Method Summary collapse

Class Method Details

.new(boolean_value, true_value, false_value) ⇒ Object



119
120
121
122
# File 'lib/much-boolean.rb', line 119

def self.new(boolean_value, true_value, false_value)
  return false_value if MuchBoolean.convert(boolean_value) == false
  true_value
end