Class: Integer

Inherits:
Object show all
Defined in:
lib/filigree/boolean.rb

Overview

Extra boolean support for the Integer class.

Instance Method Summary collapse

Instance Method Details

#to_boolBoolean

Returns This Integer as a Boolean value.

Returns:

  • (Boolean)

    This Integer as a Boolean value.



21
22
23
# File 'lib/filigree/boolean.rb', line 21

def to_bool
	self != 0
end