Method: AppMap::Hook.qualify_method_name
- Defined in:
- lib/appmap/hook.rb
.qualify_method_name(method) ⇒ Object
Return the class, separator (‘.’ or ‘#’), and method name for the given method.
41 42 43 44 45 46 47 48 |
# File 'lib/appmap/hook.rb', line 41 def qualify_method_name(method) if method.owner.singleton_class? class_name = singleton_method_owner_name(method) [ class_name, '.', method.name ] else [ method.owner.name, '#', method.name ] end end |