# File lib/rubygems.rb, line 489 def self.location_of_caller caller[1] =~ /(.*?):(\d+)$/i file = $1 lineno = $2.to_i [file, lineno] end