Class: Regexp::Syntax::Any
Overview
A syntax that always returns true, passing all tokens as implemented. This is useful during development, testing, and should be useful for some types of transformations as well.
Constant Summary
Constants included from Token
Token::All, Token::Map, Token::Types
Instance Method Summary collapse
- #implements!(_type, _token) ⇒ Object
 - #implements?(_type, _token) ⇒ Boolean
 - 
  
    
      #initialize  ⇒ Any 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
rubocop:disable Lint/MissingSuper.
 
Methods inherited from Base
#excludes, #features, #implementations, #implements, inspect, #normalize, #normalize_backref, #normalize_group
Constructor Details
#initialize ⇒ Any
rubocop:disable Lint/MissingSuper
      6 7 8  | 
    
      # File 'lib/regexp_parser/syntax/any.rb', line 6 def initialize # rubocop:disable Lint/MissingSuper @implements = { :* => %i[*] } end  | 
  
Instance Method Details
#implements!(_type, _token) ⇒ Object
      11  | 
    
      # File 'lib/regexp_parser/syntax/any.rb', line 11 def implements!(_type, _token) true end  | 
  
#implements?(_type, _token) ⇒ Boolean
      10  | 
    
      # File 'lib/regexp_parser/syntax/any.rb', line 10 def implements?(_type, _token) true end  |