ammar/regexp_parser

View on GitHub
lib/regexp_parser/syntax/any.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Regexp::Syntax
  # 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.
  class Any < Base
    implements :*, [:*]

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