On May 28, 6:18=A0pm, Ed Gallagher <ameliora... / gmail.com> wrote:
> Hi All,
>
> Wondering if possible to compile a ruby script to byte code that can be
> executed in command line just as a .rb
>

You mean encrypt/lock your source code?

No, Ruby do not provide that functionality.

However, you can use things like tar2rubyscript and similar.

Or package things as executables using Ocra or exerb

Or using JRuby, compile everything into a jar file.

--
Luis Lavena