Method: YARD::Handlers::Ruby::Base#caller_method
- Defined in:
- lib/yard/handlers/ruby/base.rb
permalink #caller_method ⇒ Object
[View source]
148 149 150 151 152 153 154 155 156 |
# File 'lib/yard/handlers/ruby/base.rb', line 148 def caller_method if statement.call? statement.method_name(true).to_s elsif statement.type == :var_ref || statement.type == :vcall statement[0].jump(:ident).source else nil end end |