I wrote a bash wrapper to ruby that goes through various setup steps.
The most basic version is,
#!/bin/bash
# ruby_wrapper.sh
ruby
Now I want to be able to use this wrapper just like regular ruby! Specifically, I want to create a .rb file that uses this "interpreter".
#!/path/to/ruby_wrapper.sh
# my_file.rb
puts "hello world"
So I want to be able to do $ ./my_file.rb
instead of $ ruby_wrapper.sh my_file.rb
Is this possible?
The documentation claims it isn't.
Note that the interpreter may not itself be an interpreter script.
But I don't see why not. Does anyone have any ideas to get around this?