Module: Rox::Core::Utils

Defined in:
lib/rox/core/utils/type_utils.rb

Class Method Summary collapse

Class Method Details

.boolean?(value) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/rox/core/utils/type_utils.rb', line 4

def self.boolean?(value)
  [true, false].include?(value)
end