Answer the question
In order to leave comments, you need to log in
How to terminate the execution of a method in Ruby?
def some_method
if a == "1"
puts "Нужно завершить метод"
_код_завершения_
else
puts "Завершение не требуется. Можно продолжить выполнение"
end
...some_code_here...
end
def another_method
...some_code_here...
end
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