Class: YARD::Handlers::Ruby::HandlesExtension
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Subclasses:
|
|
Inherits: | Object |
Defined in: | lib/yard/handlers/ruby/base.rb |
Overview
To implement a custom handler matcher, subclass this class and implement #matches? to return whether a node matches the handler.
Class Method Summary
-
.new(name) ⇒ HandlesExtension
constructor
Creates a new extension with a specific matcher value #name
Instance Method Summary
-
#matches?(node) ⇒ Boolean
Tests if the node matches the handler.
Constructor Details
.new(name) ⇒ HandlesExtension
Creates a new extension with a specific matcher value #name
# File 'lib/yard/handlers/ruby/base.rb', line 22
def initialize(name) @name = name end
Instance Method Details
#matches?(node) ⇒ Boolean
Tests if the node matches the handler
# File 'lib/yard/handlers/ruby/base.rb', line 27
def matches?(node) # rubocop:disable Lint/UnusedMethodArgument raise NotImplementedError end