Automatically setting irb context

B

bpettichord

I currently have code like this in my .irbrc:

$session = AIMS::Session.new
puts "do 'irb $session' to start"

I wanted to put "irb $session" directly in the script, so that irb
would start with $session as the current context, but this didn't
work.(NoMethodError: undefined method `irb' for #<Object:0x28a9258>) So
know i use a puts to remind me to do it manually when i start.

Is there a way to make this happen automatically?

Bret
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top