Dear ruby-talk,
I’m trying to write a friendly script that opens up an IRB session after
loading some classes and making a few instance variables for fun and
profit.
My script looks roughly like this:
#!/usr/bin/ruby
$LOAD_PATH.unshift("#{File.dirname(File.expand_path(FILE))}/lib")
require “irb”
require a few gems here here…
include MyMixin
@browser = Selenium::SeleniumDriver.new(“localhost”, 4444, “*chrome”,
http://", 300000)
@browser.start
IRB.start(FILE)
END {
@browser.stop
}
So, I run my script, everything works as I’m expecting. But, IRB gives
me the following warning message: “irb: warn: can’t alias context from
irb_context.”
Is this something I should worry about? What do I fix to make it go
away?