Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/rwanda.rb
Instance Method Summary collapse
Instance Method Details
#select_first ⇒ Object
12 13 14 15 16 17 |
# File 'lib/rwanda.rb', line 12 def select_first self.each do |el| return el if yield(el) end nil end |