Sha256: fc8e14a2240723aec0ba664ed48c2f64a5fba506df806d5057fc954dbd92e110

Contents?: true

Size: 390 Bytes

Versions: 55

Compression:

Stored size: 390 Bytes

Contents

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
    def initialize
      @implements = { :* => [:*] }
    end

    def implements?(type, token) true end
    def implements!(type, token) true end
  end

end

Version data entries

55 entries across 50 versions & 6 rubygems

Version Path
regexp_parser-1.7.1 lib/regexp_parser/syntax/any.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/regexp_parser-1.7.0/lib/regexp_parser/syntax/any.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/regexp_parser-1.6.0/lib/regexp_parser/syntax/any.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/regexp_parser-1.6.0/lib/regexp_parser/syntax/any.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/regexp_parser-1.7.0/lib/regexp_parser/syntax/any.rb
regexp_parser-1.7.0 lib/regexp_parser/syntax/any.rb
tdiary-5.1.0 vendor/bundle/gems/regexp_parser-1.6.0/lib/regexp_parser/syntax/any.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/regexp_parser-1.6.0/lib/regexp_parser/syntax/any.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/regexp_parser-1.6.0/lib/regexp_parser/syntax/any.rb
regexp_parser-1.6.0 lib/regexp_parser/syntax/any.rb
regexp_parser-1.5.1 lib/regexp_parser/syntax/any.rb
regexp_parser-1.5.0 lib/regexp_parser/syntax/any.rb
tdiary-5.0.13 vendor/bundle/gems/regexp_parser-1.3.0/lib/regexp_parser/syntax/any.rb
regexp_parser-1.4.0 lib/regexp_parser/syntax/any.rb
tdiary-5.0.12.1 vendor/bundle/gems/regexp_parser-1.3.0/lib/regexp_parser/syntax/any.rb
tdiary-5.0.11 vendor/bundle/gems/regexp_parser-1.3.0/lib/regexp_parser/syntax/any.rb
regexp_parser-1.3.0 lib/regexp_parser/syntax/any.rb
regexp_parser-1.2.0 lib/regexp_parser/syntax/any.rb
regexp_parser-1.1.0 lib/regexp_parser/syntax/any.rb
regexp_parser-1.0.0 lib/regexp_parser/syntax/any.rb