5
6
7
8
9
10
11
12
13
14
15
|
# File 'lib/bade/runtime/globals_tracker.rb', line 5
def Object.const_source_location(name)
require_relative 'utils/where'
konst = const_get(name)
is_meta = konst.is_a?(Module) || konst.is_a?(Class)
if is_meta
Bade.where_is(konst)
else
nil
end
end
|