Sha256: ed2fc755152927f63a70fdf8a0a47d4e76b7a860bfb2d5d5e4a5d78b166140c7

Contents?: true

Size: 239 Bytes

Versions: 182

Compression:

Stored size: 239 Bytes

Contents

module Regexp::Expression
  class Base
    def match?(string)
      !!match(string)
    end
    alias :matches? :match?

    def match(string, offset = 0)
      Regexp.new(to_s).match(string, offset)
    end
    alias :=~ :match
  end
end

Version data entries

182 entries across 165 versions & 27 rubygems

Version Path
harbr-0.1.86 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.85 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.84 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.83 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.82 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.81 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.80 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.79 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.78 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.77 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.76 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.75 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.74 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.73 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.72 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.71 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.70 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.69 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.68 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb
harbr-0.1.67 vendor/bundle/ruby/3.2.0/gems/regexp_parser-2.8.2/lib/regexp_parser/expression/methods/match.rb