Class: Numeric

Inherits:
Object show all
Defined in:
lib/extensions/class-extensions.rb

Overview

Time

Instance Method Summary collapse

Instance Method Details

#to_boolObject

Conversion 0/1 into true/false



35
36
37
# File 'lib/extensions/class-extensions.rb', line 35

def to_bool
  self == 0 ? false : true
end