9
It is possible to call irb by passing a library to be loaded as parameter (required):
irb -r date
But this does not work if I want to load a file in the directory where the command runs:
irb -r meuscript
(assuming the file exists meuscript.rb
)
I think this worked in older versions. How it works now?
Which version of Ruby you’re using?
– Bruno Coimbra
I’m using Ruby 1.9.3 or 2.0.
– rodrigorgs