Method: YARD::Handlers::Ruby::Legacy::Base#caller_method

Defined in:
lib/yard/handlers/ruby/legacy/base.rb

#caller_methodObject



53
54
55
56
57
58
59
# File 'lib/yard/handlers/ruby/legacy/base.rb', line 53

def caller_method
  if statement.tokens.first.is_a?(TkIDENTIFIER)
    statement.tokens.first.text
  elsif statement.tokens.first.is_a?(TkDEF)
    extract_method_details.first
  end
end