Class: RuboCop::CLI::Command::ShowCops::ExactMatcher Private
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | lib/rubocop/cli/command/show_cops.rb |
Instance Attribute Summary
- #pattern rw Internal use only
Instance Method Summary
- #match?(name) ⇒ Boolean Internal use only
Instance Attribute Details
#pattern (rw)
[ GitHub ]# File 'lib/rubocop/cli/command/show_cops.rb', line 12
ExactMatcher = Struct.new(:pattern)
Instance Method Details
#match?(name) ⇒ Boolean
# File 'lib/rubocop/cli/command/show_cops.rb', line 13
def match?(name) name == pattern end