Method: Object.const_source_location
- Defined in:
- lib/bade/runtime/globals_tracker.rb
.const_source_location(name) ⇒ Object
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) = konst.is_a?(Module) || konst.is_a?(Class) if Bade.where_is(konst) else nil end end |