# Syntax error, unexpected kEND, expecting $end

**URL:** <https://www.ruby-forum.com/t/syntax-error-unexpected-kend-expecting-end/190177>\
**Category:** Rails\
**Created:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-kend-expecting-end/190177 "2010-06-17T16:22:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-kend-expecting-end/190177/1 "2010-06-17T16:22:12Z")

</div>

I get this error

/Users/sopira/rubydev/hello/app/models/spracovatel.rb:5: syntax error,  
unexpected kEND, expecting $end

on the 5th line of the code, which has got just (and only) 5 line:

CODE:  
Class Spracovatel  
def spracovat  
return 5  
end  
end

What can cause this error?  
After digging all the internet I have not found any idea.  
Maybe here.

Thanks,  
Michael.

---

<div class="post-metadata">

**Author:** ![wickie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/ba9def/32.png) [@wickie](https://www.ruby-forum.com/u/wickie)\
**Post date:** [June 17, 2010, 4:22pm UTC](https://www.ruby-forum.com/t/syntax-error-unexpected-kend-expecting-end/190177/2 "2010-06-17T16:22:14Z")

</div>

On 17 June 2010 12:21, Michael S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I get this error
> 
> /Users/sopira/rubydev/hello/app/models/spracovatel.rb:5: syntax error,  
> unexpected kEND, expecting $end
> 
> on the 5th line of the code, which has got just (and only) 5 line:
> 
> CODE:  
> Class Spracovatel

That should be class not Class

Colin
