blob: 3e42d8cf81a764c01d4a315e7b71654c44241fdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
module ThreadBacktraceLocationSpecs
MODULE_LOCATION = caller_locations(0) rescue nil
def self.locations
caller_locations
end
def self.method_location
caller_locations(0)
end
def self.block_location
1.times do
return caller_locations(0)
end
end
end
|