Method: LibGems.location_of_caller
- Defined in:
- lib/libgems.rb
.location_of_caller ⇒ Object
The file name and line number of the caller of the caller of this method.
719 720 721 722 723 724 725 |
# File 'lib/libgems.rb', line 719 def self.location_of_caller caller[1] =~ /(.*?):(\d+).*?$/i file = $1 lineno = $2.to_i [file, lineno] end |