Class: RuboCop::CLI::Command::ShowCops::WildcardMatcher 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 18
WildcardMatcher = Struct.new(:pattern)
Instance Method Details
#match?(name) ⇒ Boolean
# File 'lib/rubocop/cli/command/show_cops.rb', line 19
def match?(name) File.fnmatch(pattern, name, File::FNM_PATHNAME) end