On Jun 3, 2005, at 12:26 PM, Florian Growrote: > Dave Burt wrote: > > >> Is there a way to do that in Ruby? Can a C extension concievably >> alter following code before it is parsed? I think I'm expecting a >> simple "no". >> > > If you are allowed to alter the shebang then you can append - > ryourlib and steal STDIN from Ruby and use eval() to execute the > filtered code. Hmm, I hadn't considered something like this. Since: #!/usr/local/bin/ruby -rwhiteout is basically: #!/usr/local/bin/ruby require "whiteout" I'm okay with it if you want to try something like this. James Edward Gray II