Ruby: "syntaxerror: unexpected end-of-input" problem

Example:

def example_method
  puts "missing end"
This error is raised when there's a missing "end" or similar syntax completion.

Solution:

def example_method
  puts "missing end"
end

Beginner's Guide to Ruby