- 1

Why my code don't work ? please

def simple p "no parens" end def simple1() puts "yes parens" end outpout resultat : no outpout Probably any method in there code?

27th Feb 2017, 1:52 PM
wally22
3 Answers
+ 3
Your first function is wrong. But more importantly you forgot to call any of these functions. Do it like this: def simple1() puts "no parent" end def simple2() puts "yes parents" end simple1() simple2()
27th Feb 2017, 1:57 PM
Alireza M
Alireza M - avatar
0
thanks
27th Feb 2017, 2:17 PM
wally22
0
now its work def simple puts "no parens" end def simple1() puts "yes parens" end simple simple1()
27th Feb 2017, 2:23 PM
wally22