Class: Numeric

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

Overview

Time

Instance Method Summary collapse

Instance Method Details

#to_boolObject

Conversion 0/1 into true/false



11
12
13
# File 'lib/ib/extensions.rb', line 11

def to_bool
  self == 0 ? false : true
end