This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Sullivan Steele
over 10 years

[solved] please help

why won’t this work

def welcome -> 
  puts "Welcome to Ruby!" 
end

welcome 

Answer 55edce69e39efe675b00050a

0 votes

Permalink

Erase the -> :

def welcome 
puts "Welcome to Ruby!"
 end 
welcome

points
Submitted by jagdeep21
over 8 years

Answer 51db76638c1ccc2159000e25

-1 votes

Permalink

You have extra characters in there.

points
Submitted by Paulina
over 10 years

4 comments

Sullivan Steele over 10 years

duh thanks

(Hans) Brett McMurdy over 10 years

also your welcome at the end doesnt have “()”

In Ruby parentheses around method calls are optional.

†h∑ ©øø∫ Guy about 10 years

yeah delete the ‘->’