From: Robert Klemme Date: 2003-06-20T17:12:29+09:00 Subject: Re: Production Code with Ruby "Warren" schrieb im Newsbeitrag news:cd4fa09e.0306191037.6bb16f5f@posting.google.com... > Hi, > > I really like ruby it is simple and much like Smalltalk and Perl that I like. > But how can I create some production code ? > > Can I Obfuscated the code ? > I will need to protect my code, if I create an application and selling it. You might try this: 07:49:14 [temp]: cat obfuscate.rb ARGF.each do |line| unless /^=begin/ =~ line .. /^=end/ =~ line line.chomp! line.gsub! /\s*#[^'"]*$/, '' print( line, ";" ) unless /^\s*$/ =~ line end end print "\n" 07:49:16 [temp]: :-)) robert