Method: Enumerable#first_result

Defined in:
lib/googlesheets.rb

#first_resultObject



6
7
8
# File 'lib/googlesheets.rb', line 6

def first_result
  block_given? ? each {|item| result = (yield item) and return result} && nil : find {|item| item}
end