Class: Numeric

Inherits:
Object show all
Defined in:
lib/mug/bool.rb

Instance Method Summary collapse

Instance Method Details

#to_bObject

Converts num to a boolean. Returns true if not zero.



35
36
37
# File 'lib/mug/bool.rb', line 35

def to_b
	self != 0
end