Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Comments0:00 with Jay McGavren
We'll talk more about methods shortly, but I want to take a moment to tell you about another important feature of Ruby. Most programming languages support comments, snippets of text that you can insert into your code that are meant for humans to read, not the computer. Ruby supports comments, too.
- If you insert a pound sign (
#), or hash mark, into your code, and it's not part of a string, Ruby will ignore all the text from the pound sign to the end of the line.
- You can do this on a line by itself, or you can do it at the end of a line of code.
# Comment puts "hello world" # Comment
You need to sign up for Treehouse in order to download course files.Sign up