From: Rick DeNatale Date: 2009-03-03T22:22:33+09:00 Subject: Re: Compiling a Ruby app --001636163f418ae632046436d8c6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Mar 3, 2009 at 5:09 AM, David Masover wrote: > Sharagoz -- wrote: > >> My second concern is protecting source code. >> I realize that everything that can be compiled can also be decompiled, >> >> > > That is not entirely true. Or rather, it can be "decompiled", all right, > but not into anything resembling the original source code. Actually closer than you might think: require 'rubygems' require 'ruby2ruby' class Foo def bar a = 1 b = 2 a + b end end puts Ruby2Ruby.translate(Foo) produces: class Foo < Object def bar a = 1 b = 2 (a + b) end end -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale --001636163f418ae632046436d8c6--