[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Automatically setting irb context

bpettichord

8/9/2006 2:54:00 PM

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