Sha256: d6f202c539c089f5aeb789357b9525d63dde4276b0cd47f429b7e60918bc0dda

Contents?: true

Size: 321 Bytes

Versions: 8

Compression:

Stored size: 321 Bytes

Contents

class String
  def matches(x)
    return self == x
  end
end

class Regexp
  def matches(x)
    return self.match(x)
  end
end

class Integer
  def matches(x)
    return self == x
  end
end

class Object
  def matches(x)
    raise TypeError, "#{self.class} is not supported as a locator"
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
watir-classic-3.3.0 lib/watir-classic/matches.rb
watir-classic-3.2.0 lib/watir-classic/matches.rb
watir-classic-3.2.0.rc1 lib/watir-classic/matches.rb
watir-classic-3.1.0 lib/watir-classic/matches.rb
watir-classic-3.0.0 lib/watir-classic/matches.rb
commonwatir-3.0.0.rc3 lib/watir/matches.rb
commonwatir-3.0.0.rc2 lib/watir/matches.rb
commonwatir-3.0.0.rc1 lib/watir/matches.rb