Ruby Ruby Basics Ruby Syntax Method Arguments

Alex Ramirez
Alex Ramirez
1,885 Points

Trouble with Ruby challenge

Hello,

I have felt that I have done for the most part everything right. Please let me know, what I need to change and improve for next time around.

Thank you!

say.rb
def say(nice)
  puts "waiting..."
  puts "done..."
  puts nice




end

ruby say.rb

2 Answers

Jay McGavren
STAFF
Jay McGavren
Treehouse Teacher

Clayton is correct that there should only be one call to puts.

Also it looks like you actually included ruby say.rb in your Ruby code, which isn't valid. ruby say.rb is what you would type in the console to run say.rb, if you were writing this code in a workspace or on your computer. But since this is a code challenge, you don't have to worry about that; all you have to do is write the Ruby code, and we'll run it for you when you submit it.

Instead, you need to make a call to the say method: say("Ruby")