= getsource - Get the source file path of the implementation of a given method = This package cointains getsource, a extension which allows get the path name for the source of a method == Installation gem install getsource == Usage === Basic Example source1.rb class X def foo end end source2.rb class Y < X def foo end end main.rb require "rallhook" require "source1.rb" require "source2.rb" x = X.new y = Y.new print x.method(:foo).body.file,"\n" # source1.rb print y.method(:foo).body.file,"\n" # source2.rb print y.method(X,:foo).body.file,"\n" # source1.rb print y.method(Y,:foo).body.file,"\n" # source2.rb NOTE: See examples directory of the gem installation == Copying Copyright (c) 2010 Dario Seminara, released under the GPL License (see LICENSE)
Project
getsource
Get the source file path of the implementation of a given method
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Pull Requests
Development
Dependencies
Project Readme