Class: Enumerator
Direct Known Subclasses
Instance Method Summary collapse
-
#to_b ⇒ Object
Converts enum to a boolean.
Instance Method Details
#to_b ⇒ Object
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 |