Question: I want to have SVN branch name added (under the title) as sort of version information. I want it to be done automatically so that when I copy files generating the documentation to another (new) branch I get that info put in automatically. Any hints?

Thanks!

Answer: 
You cannot protect the algorithm you are writing by changing it to C .. May be you can encrypt the source files. Try [truecrypt](http://www.truecrypt.org/)

**Edit**

After some googling i found these articles related to ruby code obfuscation 

1. [protecting-your-ruby-source-code-for-end-user-applications/](http://web.archive.org/web/20110828153039/http://seanmountcastle.com/2007/12/protecting-your-ruby-source-code-for-end-user-applications/)
2. [Ruby Encoder Protects Source Code for US Department of Defense Project](http://www.prlog.org/10390387-ruby-encoder-protects-source-code-for-us-department-of-defense-project.html)
3. <http://rubyencoder.com/>
You can try some code obfuscation techniques. For example [RubyEncoder](http://rubyencoder.com/ "RubyEncoder") compiles Ruby source code into a encrypted bytecode format. And here is another thread related to your question [Ruby obfuscator](https://stackoverflow.com/questions/2123437/ruby-obfuscator)