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