Skip to content

Instantly share code, notes, and snippets.

/replace.rb Secret

Created February 18, 2016 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/66d6e8eafdfc5c0ce388 to your computer and use it in GitHub Desktop.
Save anonymous/66d6e8eafdfc5c0ce388 to your computer and use it in GitHub Desktop.
gsub
def replace(day)
day.gsub("Monday", "Ponedjeljak")
day.gsub("Tuesday", "Utorak")
day.gsub("Wednesday", "Srijeda")
day.gsub("Thursday", "Četvrtak")
day.gsub("Friday", "Petak")
day.gsub("Saturday", "Subota")
day.gsub("Sunday", "Nedjelja")
#abort(day)
return day
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment