This file contains hidden or 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
#!/usr/bin/ruby | |
month = Time.now.month | |
day = Time.now.day | |
if month == 3 && day == 14 | |
then | |
puts "Happy Pi day!~" | |
end |
This file contains hidden or 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
old_string = "Ruby is cool" | |
new_string = old_string.reverse.upcase | |
puts new_string |
NewerOlder