See the iruby example here: SciRuby example notebook
What thay propose is:
File.open('IRuby Examples/ruby.png')