Method: Enumerable#first
- Defined in:
- lib/jinx/helpers/enumerable.rb
#first ⇒ Object
This method is functionally equivalent to to_a.first but is more concise and efficient.
68 69 70 |
# File 'lib/jinx/helpers/enumerable.rb', line 68 def first detect { true } end |