Class: Object

Inherits:
BasicObject
Defined in:
lib/extensions/object.rb

Overview

Syntax sugar

Instance Method Summary collapse

Instance Method Details

#is_bool?Boolean

Provide is_bool? to all objects

Returns:

  • (Boolean)


6
7
8
# File 'lib/extensions/object.rb', line 6

def is_bool?
  [ true, false ].include? self
end