irb problem

i have this irb problem..when i try to enter this line : def show_text
text
the irb gives me this error

No command 'def' found, did you mean:

Are you sure you're in irb? It looks like you're just at the
shell prompt.

You need to type irb first to start it.