Module: EmailInquire::Helper

Extended by:
Helper
Included in:
Helper
Defined in:
lib/email_inquire/helper.rb

Instance Method Summary collapse

Instance Method Details

#first_value(array, &block) ⇒ Object



8
9
10
# File 'lib/email_inquire/helper.rb', line 8

def first_value(array, &block)
  array.lazy.map(&block).find(&:itself)
end