Skip to content

Instantly share code, notes, and snippets.

@ziyadbasheer
Created February 2, 2015 15:11
Show Gist options
  • Save ziyadbasheer/278f0add627037bc4308 to your computer and use it in GitHub Desktop.
Save ziyadbasheer/278f0add627037bc4308 to your computer and use it in GitHub Desktop.
response = {}
def find_language(list)
list.each do |item|
if item.end_with?('.rb')
response[:language] = "ruby"
break
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment