Class: Array

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

Instance Method Summary collapse

Instance Method Details

#to_bObject

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



66
67
68
# File 'lib/mug/bool.rb', line 66

def to_b
	!empty?
end