Ruby Ruby Basics Ruby Syntax Method Arguments

Hi there. I keep getting a error saying I didn't define a method. I did what was is the video?

Am I doing something wrong?

say.rb
def first(say)
  puts first
  first(ruby)

1 Answer

In ruby, method definitions always end with the end keyword. It's missing in your solution.

Rewriting your solution to include the end keyword and the method call, the answer should look like this:

def first(say)
  puts first
end

first(ruby)