Ruby Basics: It Feels Like I'm Back in 61A


Assignment

In this assignment, you will be exploring various features of the Ruby language by implementing basic functions and completing the implementations of some classes. This may feel disconnected from our usual work, but it will help you gain a more solid understanding of how to write code in Ruby, which is essential to minimizing your headache with Rails.

Getting the Files

All the files for this Ruby assignment are located under ruby_lab. You will need to create a new branch for your work on this lab.

cd ruby_lab
git checkout -b ruby_lab

All instructions are included for you in ruby_lab/lab.rb. When you are ready to test, see the next section.

How to Submit

Run the (extremely basic) tests using the following command (while in the ruby_lab directory):

./test.sh

After you've passed the tests, add and commit your code:

git add -A
git commit -m "Write something!"
git push origin ruby_lab

Then, go to your GitHub repo online and look for a button "New Pull Request". There should be multiple places where you can do this. Make sure you are comparing your repo's master branch to the base fork's (bloo-print/ruby-rails) master branch. Submit your pull request and we will review it!

results matching ""

    No results matching ""