Class: Numeric
Overview
Time
Instance Method Summary collapse
-
#to_bool ⇒ Object
Conversion 0/1 into true/false.
Instance Method Details
#to_bool ⇒ Object
Conversion 0/1 into true/false
35 36 37 |
# File 'lib/extensions/class-extensions.rb', line 35 def to_bool self == 0 ? false : true end |