The following debugging information was generated by Atom Beautify
on Tue May 22 2018 15:20:11 GMT-0400 (EDT)
.
I hereby claim:
- I am Shmuwol on github.
- I am shmully (https://keybase.io/shmully) on keybase.
- I have a public key whose fingerprint is 3D24 26CB 60E1 C951 5982 9AAD FADE AA9D B783 46F0
To claim this, I am signing this object:
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
[ | |
{ | |
type: "button" | |
icon: "octoface" | |
tooltip: "Open in Github" | |
callback: "open-on-github:file" | |
} | |
{ | |
type: "button" | |
icon: "document" |
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
class Animal | |
def initialize(animal) | |
@animal = animal | |
end | |
def sound | |
if @animal == "dog" | |
"Woof! Woof!" | |
elsif @animal == "cat" | |
"Meow!" |
days_of_week = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
Now if we do this.
days_of_week.cycle {|day| puts day}
it will return all the days of the week over and over, forever.