Ruby equivalent of Perl Tie::File

In perl there is the cpan module Tie::File which maps the lines of a
file to an array.The file remains on disk and does not get loaded in to
memory at all.

Is there such a gem available for Ruby or is such a thing baked in to
the language?

Thanks.

It looks like someone wrote an implementation of it in 2009, but the
repository is no longer accessible. Might be fun to write. :slight_smile:

What is the name of that gem or repository?

I noticed that a lot of old projects sorta vanished or died down
mysteriously; things such as http://www.erikveen.dds.nl/rubywebdialogs/

I can’t even get the latter to run anyway either.

My hope is that rubocop will one day automagically autocorrect all those
ancient ruby code elements :slight_smile: