In Linux, it is very easy "just" to add executable to a file, simply by input:
chmod +x <fname>
However, I have failed to find something as easy in the gems of Ruby. Of course, one could do a system call, i.e.
system( 'chmod +x' << fname )
However, I am looking for something more 'elegant'.
I'm using Ruby 1.8.7.