Skip to content

BMWeygant/Ruby-Tutorial-Methods-Lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Methods Lab

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:

  1. hello_world that takes no arguments and returns a string.
  2. draft_pick which takes 2 arguments - player and team - and returns a string.
  3. ruby_noob takes a default argument subject set to "Ruby".

Define all these methods inside the file methods.rb. Good luck!

Installation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages