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.4.8 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.10 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.3 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.7 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.1 lib/rr/wildcard_matchers/regexp.rb
rr-0.8.1 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.0 lib/rr/wildcard_matchers/regexp.rb
rr-0.8.0 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.9 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.8 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.4 lib/rr/wildcard_matchers/regexp.rb
rr-0.7.0 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.5 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.6 lib/rr/wildcard_matchers/regexp.rb
rr-0.9.0 lib/rr/wildcard_matchers/regexp.rb
rr-0.6.0 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.2 lib/rr/wildcard_matchers/regexp.rb
rr-0.4.6 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.9 lib/rr/wildcard_matchers/regexp.rb
rr-0.3.7 lib/rr/wildcard_matchers/regexp.rb