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
11 12 13 |
# File 'lib/ib/extensions.rb', line 11 def to_bool self == 0 ? false : true end |