Ruby Ruby Basics Ruby Syntax Method Arguments

Joshua Woods
Joshua Woods
2,158 Points

Dont understand

Define a method named say. The say method should take one parameter (name the parameter whatever you want). In the say method body, take the parameter and pass it to puts as an argument. End your program with a call to the say method, and pass the string "Ruby" as an argument.

I don't understand what they want based on how this is worded

say.rb
def say(baconbits)
  puts baconbits
end

say

2 Answers

Brandon Williams
Brandon Williams
5,586 Points

I can't get this to work either. This is what I wrote:

def say(Chuck_Norris)
  puts "Ruby"
end

Chuck_Norris
KRIS NIKOLAISEN
KRIS NIKOLAISEN
54,287 Points

You are to pass Ruby as an argument:

say("Ruby")