Sha256: 33109aa57ac499329f7622ae07f8f552575ba397de429980c4092eaee73d5923

Contents?: true

Size: 164 Bytes

Versions: 100

Compression:

Stored size: 164 Bytes

Contents

class Regexp
  def wildcard_match?(other)
    return true if self == other
    return false unless other.is_a?(String)
    (other =~ self) ? true : false
  end
end

Version data entries

100 entries across 96 versions & 9 rubygems

Version Path
rr-0.1.15 lib/rr/wildcard_matchers/regexp.rb
rr-0.1.3 lib/rr/expectations/wildcard_matchers/regexp.rb
rr-0.1.4 lib/rr/expectations/wildcard_matchers/regexp.rb
rr-0.1.10 lib/rr/wildcard_matchers/regexp.rb
rr-0.2.5 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.0 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.4 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.2 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.1 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.3 lib/rr/wildcard_matchers/regexp.rb
rr-0.2.4 lib/rr/wildcard_matchers/regexp.rb
rr-0.1.9 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.10 lib/rr/wildcard_matchers/regexp.rb
rr-0.2.1 lib/rr/wildcard_matchers/regexp.rb
rr-0.2.3 lib/rr/wildcard_matchers/regexp.rb
rr-0.2.2 lib/rr/wildcard_matchers/regexp.rb
rr-0.10.0 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.11 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.5 lib/rr/wildcard_matchers/regexp.rb
rr-0.7.1 lib/rr/wildcard_matchers/regexp.rb