Skip to content

Instantly share code, notes, and snippets.

@jbuda
Created October 19, 2013 00:33
Show Gist options
  • Save jbuda/7050290 to your computer and use it in GitHub Desktop.
Save jbuda/7050290 to your computer and use it in GitHub Desktop.
Ruby - Day 1 - Seven Languages in Seven Weeks
str = "Hello, Ruby"
idx = str.index("Ruby")
puts "Index of 'Ruby' is : #{idx}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment