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 Ruby Syntax Defining Methods

not sure what to do

yeah not sure what to do

hello.rb
puts say_hi. 

1 Answer

AJ Tran
STAFF
AJ Tran
Treehouse Teacher

Hi kyle long!!

With your code snippet, there is just an extra punctuation mark, the period ..

In English, . is used at the end of the sentence!

However, in Ruby, the . symbol is used to call an object's methods. Therefore, your code will "pause" and wait for "further instructions" to continue. That is not needed here.

Assuming that you have assigned a value to say_hi, see my example below:

say_hi = 'hello world'

puts say_hi

This example will output a message that says hello world!

I hope that this helps you, buddy!