Method: Sentry::Profiler::Helpers#split_module
- Defined in:
- lib/sentry/profiler/helpers.rb
permalink #split_module(name) ⇒ Object
[View source]
36 37 38 39 40 41 42 43 |
# File 'lib/sentry/profiler/helpers.rb', line 36 def split_module(name) # last module plus class/instance method i = name.rindex("::") function = i ? name[(i + 2)..-1] : name mod = i ? name[0...i] : nil [function, mod] end |