Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/extensions/object.rb
Overview
Syntax sugar
Instance Method Summary collapse
-
#is_bool? ⇒ Boolean
Provide is_bool? to all objects.
Instance Method Details
#is_bool? ⇒ Boolean
Provide is_bool? to all objects
6 7 8 |
# File 'lib/extensions/object.rb', line 6 def is_bool? [ true, false ].include? self end |