Sha256: 025ba70506f8b2fc08e083518b037fc07b285c24915cd1c5a3f85f702b7cb040

Contents?: true

Size: 308 Bytes

Versions: 8

Compression:

Stored size: 308 Bytes

Contents

class Array
  def wildcard_match?(other)
    return false unless other.is_a?(Array)
    each_with_index do |value, i|
      if value.respond_to?(:wildcard_match?)
        return false unless value.wildcard_match?(other[i])
      else
        return false unless value == other[i]
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rr-1.1.2 lib/rr/core_ext/array.rb
rr-1.1.2.rc1 lib/rr/core_ext/array.rb
rr-1.1.1 lib/rr/core_ext/array.rb
rr-1.1.1.rc1 lib/rr/core_ext/array.rb
rr-1.1.0 lib/rr/core_ext/array.rb
rr-1.1.0.rc3 lib/rr/core_ext/array.rb
rr-1.1.0.rc2 lib/rr/core_ext/array.rb
rr-1.1.0.rc1 lib/rr/core_ext/array.rb