Give me Suggestion To run ruby file by sciTE in Ubuntu

I am a newcomer in Ruby. Recently, I am trying to run ruby at Ubuntu.
It works well, but the problem occurs when i try to run the program
through sciTE at ubuntu. it shows error for 'gets' as below:
gets': Bad file descriptor (Errno::EBADF)
how can i solve it?

try notepad++ or textmate

Paul OM wrote:

I am a newcomer in Ruby. Recently, I am trying to run ruby at Ubuntu.
It works well, but the problem occurs when i try to run the program
through sciTE at ubuntu. it shows error for 'gets' as below:
gets': Bad file descriptor (Errno::EBADF)
how can i solve it?

Sounds like you're using the C++ "gets" which is for a file. It's odd.
Out of sheer curiosity, show us that bit of code?

Check out this page:
http://www.scintilla.org/SciTEDoc.html
"Language settings are determined from the file extension but this can
be changed by selecting another language from the Language menu. The
language menu can be changed with the menu.language property."