Is it possible to compile Ruby to byte code as with Python?

后端 未结 5 817
忘了有多久
忘了有多久 2020-12-08 10:12

In Python, if I want to give out an application without sources I can compile it into bytecode .pyc, is there a way to do something like it in Ruby?

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-08 11:02

    The short answer is "YES",

    check rubini.us

    It will solve your problem.

    Here is how to compile ruby code:

    http://rubini.us/2011/03/17/running-ruby-with-no-ruby/

提交回复
热议问题