Class: String

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

Instance Method Summary collapse

Instance Method Details

#to_bObject

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



56
57
58
# File 'lib/mug/bool.rb', line 56

def to_b
	!empty?
end