Ruby files should always have a newline at the end. Configure your editor properly.