Skip to content

Instantly share code, notes, and snippets.

@RyanMacG
Created July 23, 2015 09:32
Show Gist options
  • Save RyanMacG/7ea98f15794ddf6fdebe to your computer and use it in GitHub Desktop.
Save RyanMacG/7ea98f15794ddf6fdebe to your computer and use it in GitHub Desktop.
Baby class for ruby
class Baby
attr_reader :baby_thing
BABY_THINGS = [
'poop',
'sleep',
'cry',
'eat',
'burp',
'throw up',
'pee on parent'
]
def initialize()
@baby_thing = BABY_THINGS.sample(1)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment