Answer the question
In order to leave comments, you need to log in
How to get the name of a method within itself?
How to get the name of the method inside a method?
def double(n)
puts n*n
# puts имя_метода
end
double(2)
#4
#double
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question