Iterator
Converts enum to a boolean.
Converts enum to a boolean. Returns true if there are any elements. An enumerator whose size cannot be calculated lazily is assumed to be true.
97 98 99
# File 'lib/mug/bool.rb', line 97 def to_b (s = size).nil? || s.to_b end