Class: Hash

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

Instance Method Summary collapse

Instance Method Details

#to_bObject

Converts hsh to a boolean. Returns true if not empty.



76
77
78
# File 'lib/mug/bool.rb', line 76

def to_b
	!empty?
end