Skip to content

Files

Latest commit

0eb3f20 · Jun 12, 2016

History

History
This branch is 1 commit ahead of, 278 commits behind turingschool-examples/ruby-exercises:main.

objects-and-methods

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 12, 2016
Nov 3, 2014
Jan 17, 2014

Objects and Methods

Exercise 1

If you'd like to be walked through the exercise, check out the Objects and Methods workshop on the Jumpstart Lab tutorials site.

Make the tests pass in the following sequence:

  • test/candy_test.rb
  • test/bag_test.rb
  • test/costume_test.rb
  • test/trick_or_treater_test.rb

Run a test file by calling it with ruby:

$ ruby test/bag_test.rb

Exercise 2

Each object has become a little bit more complex.

Make the tests pass in the following sequence:

  • test/candy_test.rb
  • test/bag_test.rb
  • test/costume_test.rb
  • test/trick_or_treater_test.rb