Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Ruby Basics (Retired) Ruby Methods Method Arguments: Part 1

Ruby Challenge

What is the method for "hello"?

method.rb

Just do exactly what they ask you to do on the challenge. They slowly build up the challenges from the basics to the end. What exactly is the step you're asking about?

1 Answer

Lindsay Terrell
Lindsay Terrell
9,888 Points

You are creating/defining the method named hello. The code sample at the bottom of the video you are watching preceding this challenge is a great hint. You just need to change the name of the method to hello and pass in only one argument.

def methodname(arg1)
end