Class: Numeric
Instance Method Summary collapse
-
#to_b ⇒ Object
Converts num to a boolean.
Instance Method Details
#to_b ⇒ Object
Converts num to a boolean. Returns true if not zero.
35 36 37 |
# File 'lib/mug/bool.rb', line 35 def to_b self != 0 end |