Module: RuboCop::AST::NodePattern::Sets
Relationships & Source Files | |
Defined in: | lib/rubocop/ast/node_pattern/sets.rb |
Overview
Utility to assign a set of values to a constant
Constant Summary
-
MAX =
# File 'lib/rubocop/ast/node_pattern/sets.rb', line 144
-
REGISTRY =
# File 'lib/rubocop/ast/node_pattern/sets.rb', line 8Hash.new do |h, set| name = Sets.name(set).freeze Sets.const_set(name, set) h[set] = "::RuboCop::AST::NodePattern::Sets::#{name}" end
Class Method Summary
Class Method Details
.[](set)
[ GitHub ]# File 'lib/rubocop/ast/node_pattern/sets.rb', line 31
def self.[](set) REGISTRY[set] end