Class: Enumerator

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

Direct Known Subclasses

Iterator

Instance Method Summary collapse

Instance Method Details

#to_bObject

Converts enum to a boolean. Returns true if there are any elements.



97
98
99
# File 'lib/mug/bool.rb', line 97

def to_b
	size.to_b
end