Skip to content

Instantly share code, notes, and snippets.

@cherimarie cherimarie/Pets.rb
Last active Aug 29, 2015

Embed
What would you like to do?
Pets Array
$pets = []
$pets << {
:name => 'Lallo',
:nocturnal => false,
:breed => 'Schnauzer',
:talents => ['napping', 'rolling over', 'playing dead'],
:legs => 4
}
$pets << {
:name => 'Buckminster',
:nocturnal => false,
:breed => 'Scottish Fold Kitty',
:talents => ['napping', 'ignoring humans', 'singing'],
:legs => 4
}
$pets << {
:name => 'Roro',
:nocturnal => true,
:breed => 'African Grey Parrot',
:talents => ['mimicry', 'singing'],
:legs => 2
}
$pets << {
:name => 'Little Jade',
:nocturnal => true,
:breed => 'Box Turtle',
:talents => ['swimming', 'napping'],
:legs => 4
}
$pets << {
:name => 'Cometa',
:nocturnal => false,
:breed => 'Slug',
:talents => ['ignoring humans', 'being squishy'],
:legs => 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.