Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Ruby Collections Ruby Hashes Hash Methods

kabir k
kabir k
Courses Plus Student 18,036 Points

Preceding the methods' names with # in the Teacher's Notes

In the Teacher's Notes, I noticed they preceded the methods' names with #.

Is that commenting or something else?

1 Answer

Daniel Cunningham
Daniel Cunningham
21,109 Points

Hello Kabir, if you look into the hash documentation associated with the teacher's notes, you'll see that the # is actually in front of all of the methods along the left hand column. It's pretty common with Class methods within the Ruby documentation. Similarly, for Modules, you'll see '::' in front of the associated Classes within a Module. Knowing that could be very helpful when reading the documentation in order to help you with identifying the correct syntax for your projects. Hopefully that helps! Great question!