Skip to content

Instantly share code, notes, and snippets.

@cherimarie
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cherimarie/11004115 to your computer and use it in GitHub Desktop.
Save cherimarie/11004115 to your computer and use it in GitHub Desktop.
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