Forum: Ruby can't alias context from irb_context.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Sebastian W. (Guest)
on 2009-01-14 19:17
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

My script looks roughly like this:

require "irb"
# require a few gems here here...
include MyMixin

@browser ="localhost", 4444, "*chrome",
http://", 300000)




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

Is this something I should worry about? What do I fix to make it go
Sebastian W. (Guest)
on 2009-01-14 21:17
Nobody? :(
Sebastian W. (Guest)
on 2009-01-15 01:32
Sebastian W. wrote:
> Nobody? :(

Ah okay, figured it out. I was requiring RSpec when I didn't really need
it, and that made IRB unhappy. Taking out the require "rspec" made the
warning go away.

Hopefully this will help someone someday! :)
This topic is locked and can not be replied to.