Ruby - Methods
Identify the error in this Ruby method declaration:
def say_hello puts "Hello"
def say_hello puts "Hello"
def and end with end. This code misses the end keyword.end, Ruby will raise a syntax error because the method is not properly closed.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions