module OmniAuth::Slack::CallerMethodName
Public Class Methods
included(other)
click to toggle source
# File lib/omniauth-slack/refinements.rb, line 61 def self.included(other) other.send(:extend, CallerMethodName) end
Public Instance Methods
caller_method_name()
click to toggle source
# File lib/omniauth-slack/refinements.rb, line 56 def caller_method_name #caller[0][/`([^']*)'/, 1] # This gets the method name only 1 level up. caller[1][/`([^']*)'/, 1] # This gets the method name 2 levels up. end