Class: Object

Inherits:
BasicObject
Defined in:
lib/bade/runtime/globals_tracker.rb

Class Method Summary collapse

Class Method Details

.const_source_location(name) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/bade/runtime/globals_tracker.rb', line 5

def self.const_source_location(name)
  require_relative 'utils/where'

  konst = const_get(name)
  is_meta = konst.is_a?(Module) || konst.is_a?(Class)
  return unless is_meta

  Bade.where_is(konst)
end