module CutePrint::FindsForeignCaller
@api private
Public Instance Methods
lib_path()
click to toggle source
# File lib/cute_print/finds_foreign_caller.rb, line 15 def lib_path File.join(File.dirname(__FILE__), '..') end
nearest_foreign_caller()
click to toggle source
# File lib/cute_print/finds_foreign_caller.rb, line 8 def nearest_foreign_caller caller.find do |s| path = s.split(":").first !File.expand_path(path).include?(File.expand_path(lib_path)) end end