Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/ext/to_bool.rb
Instance Method Summary collapse
Instance Method Details
#to_bool ⇒ Object
2 3 4 5 |
# File 'lib/ext/to_bool.rb', line 2 def to_bool return true if self == 1 return false if self == 0 end |