Class: Regexp::Syntax::Any

Inherits:
Base
  • Object
show all
Defined in:
lib/regexp_parser/syntax/any.rb

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

Class Method Summary collapse

Methods inherited from Base

added_features, excludes, implementations, implements, implements!, inherited, #initialize, #method_missing, normalize, normalize_backref, normalize_group, removed_features, #respond_to_missing?

Constructor Details

This class inherits a constructor from Regexp::Syntax::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Regexp::Syntax::Base

Class Method Details

.implements?(_type, _token) ⇒ Boolean

Returns:

  • (Boolean)


8
# File 'lib/regexp_parser/syntax/any.rb', line 8

def self.implements?(_type, _token) true end