How can I create a bash script which runs irb, then some ruby code?

view full story

http://unix.stackexchange.com – I'm trying to do this to make unit testing a breeze for myself. The contents of an example script in question are as follows: irb require 'random_utils.rb' a = SuccessChecker.new Right now this just opens irb. I'd like to be able to run arbitrary code afterward, so that I might make scripts to make my life easier by requiring files, instantiating classes, populating test conditions, etc. (HowTos)