Posts Tagged ‘TIL’

TIL Ruby ObjectSpace#define_finalizer

Posted by Ed on January 19th, 2012 under Programming, Ruby Tags: ,  •  No Comments

I ran into a situation recently where I was writing a library that utilized large files. Specifically a GTFS feed parser. I wanted to cache the files away someplace so I could safely access them for the life of an object, but I didn’t want to leave them hanging around afterwards. I couldn’t do all [...]