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 # rubocop:disable Lint/MissingSuper @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