class Rubocop::Cop::CopStore
Store for all cops with helper functions
def types
-
(Array
- list of types for current cops.)
def types @types = map(&:cop_type).uniq! unless defined? @types @types end
def with_type(type)
-
(Array
- Cops for that specific type.)
def with_type(type) select { |c| c.cop_type == type } end