Sha256: 367a94bc2ba28d9332fd8de862aaaa3d3fa08982c3acf43c4265678f09061ee0
Contents?: true
Size: 298 Bytes
Versions: 2
Compression:
Stored size: 298 Bytes
Contents
module Matchi # **Regular expressions** matcher. class Match < BasicObject def initialize(expected) @expected = expected end # @return [Boolean] Comparison between actual and expected values. def matches? @expected.match(yield).nil?.equal?(false) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
matchi-0.0.2 | lib/matchi/match.rb |
matchi-0.0.1 | lib/matchi/match.rb |