class YARD::Handlers::Ruby::MethodCallWrapper

Public Instance Methods

matches?(node) click to toggle source
# File lib/yard/handlers/ruby/base.rb, line 38
def matches?(node)
  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, :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
end