-
-
Save anonymous/66d6e8eafdfc5c0ce388 to your computer and use it in GitHub Desktop.
gsub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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