Ruby: encountering "syntaxerror: unexpected end-of-input" error

Example:

def missing_end
  puts "Hello"
This error is caused by a missing "end" keyword in the code.

Solution:

def missing_end
  puts "Hello"
end

Beginner's Guide to Ruby