lib/yard/handlers/ruby/base.rb in yard-0.7.2 vs lib/yard/handlers/ruby/base.rb in yard-0.7.3

- old
+ new

@@ -36,11 +36,11 @@ case node.type when :var_ref if !node.parent || node.parent.type == :list return true if node[0].type == :ident && (name.nil? || node[0][0] == name) end - when :fcall, :command + when :fcall, :command, :vcall return true if name.nil? || node[0][0] == name when :call, :command_call return true if name.nil? || node[2][0] == name end false @@ -146,10 +146,10 @@ end def caller_method if statement.call? statement.method_name(true).to_s - elsif statement.type == :var_ref + elsif statement.type == :var_ref || statement.type == :vcall statement[0].jump(:ident).source else nil end end \ No newline at end of file