It's trivial to make a program executable from shell - just put #!/usr/bin/ruby
on top, chmod +x
it and done. Unfortunately OSX won't let me associate file type with such scripts - it requires its .app
s instead. This sort of distinction doesn't seem to exist on other operating systems.
What's the simplest way of making such .app
, which would merely execute some arbitrary Ruby code?