# Anyone use LineCache::remap\_file or LineCache::unmap\_file?

**URL:** <https://www.ruby-forum.com/t/anyone-use-linecache-remap-file-or-linecache-unmap-file/177802>\
**Category:** Ruby\
**Created:** [October 23, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/anyone-use-linecache-remap-file-or-linecache-unmap-file/177802 "2009-10-23T23:13:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocky](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/278dde/32.png) [@rocky](https://www.ruby-forum.com/u/rocky)\
**Post date:** [October 23, 2009, 11:13pm UTC](https://www.ruby-forum.com/t/anyone-use-linecache-remap-file-or-linecache-unmap-file/177802/1 "2009-10-23T23:13:24Z")

</div>

I’ve just started using these methods in Ruby 1.9 and believe I got  
the API wrong previously. Instead of  
remap\_file(old\_name, new\_name) I have remap\_file(new\_name, old\_name).  
And what I had previously called “unmap”, I think now would be better  
called simply “map”.

Is anyone using these LineCache methods in Ruby 1.8? Note: there is no  
official release of LineCache for 1.9 yet.
