Class: YARD::Handlers::Ruby::MethodCallWrapper
- Inherits:
-
HandlesExtension
- Object
- HandlesExtension
- YARD::Handlers::Ruby::MethodCallWrapper
- Defined in:
- lib/yard/handlers/ruby/base.rb
Instance Method Summary
Methods inherited from HandlesExtension
Constructor Details
This class inherits a constructor from YARD::Handlers::Ruby::HandlesExtension
Instance Method Details
- (Boolean) matches?(node)
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/yard/handlers/ruby/base.rb', line 12 def matches?(node) case node.type when :var_ref if !node.parent || node.parent.type == :list return true if node[0].type == :ident && node[0][0] == name end when :fcall, :command return true if node[0][0] == name when :call, :command_call return true if node[2][0] == name end false end |