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