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