Contents of /lib automatically loaded?

I’ve written a simple replacement (not extension) of Ruby’s array class
with
some added functionality. I defined it in array.rb and put the file in
rails_root/lib but when i fire up the console the class isn’t being
loaded.
How can I have my class automatically loaded and used instead of the
built
in Ruby class?

Why would you want to replace the built-in Array class … that seems
like a bad idea to me.

Just extend the built-in class in environment.rb if you want more
functionality.

-Jonathan.

like a bad idea to me.

Just extend the built-in class in environment.rb if you want more
functionality.

Or leave it in lib, but require it in environment.rb… but I agree
about the extension vs. replacement.