Class: Fixnum
- Inherits:
-
Object
- Object
- Fixnum
- Defined in:
- lib/retort/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#truth ⇒ Object
2 3 4 |
# File 'lib/retort/core_ext.rb', line 2 def truth return [false,true][self] if (0..1).member? self end |