lib/email_finder/employee.rb
def email_for(item)
      return email_variations[item] if item.is_a? Integer

      email_variations[pattern_variants.index(item)]
    end
# Accepts either an actual index or email pattern for lookup
Accepts either an actual index or email pattern for lookup
Accepts either an actual index or email pattern for lookup
def email_for(item)
      return email_variations[item] if item.is_a? Integer
      email_variations[pattern_variants.index(item)]
    end
def email_for ( item ) return email_variations [ item ] if item . is_a? Integer email_variations [ pattern_variants . index ( item ) ] end
Accepts either an actual index or email pattern for lookup
Accepts either an actual index or email pattern for lookup
item