What is the difference between kend and $ end?

I got this error:

syntax error, unexpected kEND, expecting $end 

What is the difference between kend and $ end?

+6
ruby-on-rails heroku
source share
2 answers

The English language says:

syntax error, unexpected end of file , awaiting end keyword

I agree with this rather unintuitive post.

So the difference is as follows:

kEND = end of file

$ end = end keyword

+8
source share

KEND is the end of your file. $ end is the end tag, something like

 if somethingIsTrue puts "its true!" end 

Usually, when this happens, you forget to close something with an end.

+3
source share

All Articles