Module: Enumerable
- Defined in:
- lib/mug/bool.rb
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.
86 87 88 |
# File 'lib/mug/bool.rb', line 86 def to_b any?{ true } end |