Class: Integer
Overview
Extra boolean support for the Integer class.
Instance Method Summary collapse
-
#to_bool ⇒ Boolean
This Integer as a Boolean value.
Instance Method Details
#to_bool ⇒ Boolean
Returns This Integer as a Boolean value.
21 22 23 |
# File 'lib/filigree/boolean.rb', line 21 def to_bool self != 0 end |