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