Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/refuge/utils/array.rb
Instance Method Summary collapse
Instance Method Details
#find(&block) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/refuge/utils/array.rb', line 22 def find ( &block ) result = nil self.each do | elem | ( result = elem ; break ) if yield elem end return result end |