# Simplest way to check if foo is a boolean !!foo == foo # Concise and self-documenting [true, false].include? foo # When using Rails or ActiveSupport, also self-documenting foo.in? [true, false]
boolFalse = false # or boolTrue = true