Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Ruby Basics!
You have completed Ruby Basics!
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
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up