How to check if a Ruby object is a Boolean June 6, 2023 by Tarik Simplest way I can think of: # checking whether foo is a boolean !!foo == foo