# UnboundMethod#source\_location in Ruby 1.8.7

**URL:** <https://www.ruby-forum.com/t/unboundmethod-source-location-in-ruby-1-8-7/196095>\
**Category:** Ruby\
**Created:** [October 6, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/unboundmethod-source-location-in-ruby-1-8-7/196095 "2010-10-06T19:33:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcsnide](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Post date:** [October 6, 2010, 7:33pm UTC](https://www.ruby-forum.com/t/unboundmethod-source-location-in-ruby-1-8-7/196095/1 "2010-10-06T19:33:46Z")

</div>

Any way to emulate UnboundMethod#source\_location in Ruby 1.8.7? I am  
working on a tool that uses this feature and I am wondering how I can  
make it work for older version of Ruby as well.

Thanks.
