blob: d6eea9678060a9dc6c0f27aaea920d49b920a290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class Chef
module Mixin
module Callers
def parse_caller(at)
if /^(.+?):(\d+)(?::in `(.*)')?/ =~ at
file = Regexp.last_match[1]
line = Regexp.last_match[2].to_i
method = Regexp.last_match[3]
[file, line, method]
end
end
end
end
end
|