This guide assumes you have Ruby installed on your machine, a text editor, and a Github account already in place.
In this lab, you will write 3 methods:
hello_world
that takes no arguments and returns a string.draft_pick
which takes 2 arguments - player and team - and returns a string.ruby_noob
takes a default argument subject set to "Ruby".
Define all these methods inside the file methods.rb
. Good luck!
To get started, fork this lab to your GitHub account, copy the repo url, then in your terminal enter:
git clone {repo url}
This will create a repository in your github and download your repo to your local machine so you can start working on it. When you solved all test cases follow thes steps:
git add .
This will add all files in your current directory to be committed to Github.
git commit -m "Done."
This will commit the changes you made and ready them to be pushed to Github. The `-m "Done."' part will add a message expalaining your commit.
git push
This will push your changes to the associated Github repo.