class Regexp::Syntax::Any

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.

Public Class Methods

new() click to toggle source
# File lib/regexp_parser/syntax/any.rb, line 7
def initialize
  @implements = { :* => [:*] }
end

Public Instance Methods

implements!(type, token) click to toggle source
# File lib/regexp_parser/syntax/any.rb, line 12
def implements!(type, token) true end
implements?(type, token) click to toggle source
# File lib/regexp_parser/syntax/any.rb, line 11
def implements?(type, token) true end