Sha256: 4ffba359515d60a1fb64c1e468bc03836578a43abb80930947a7b8dd40ee15f4

Contents?: true

Size: 182 Bytes

Versions: 8

Compression:

Stored size: 182 Bytes

Contents

module ValuesMatch
  def values_match?(actual, expected)
    if expected.is_a? Regexp
      (actual =~ expected) ? true : false
    else
      expected == actual
    end
  end  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
polonium-0.3.3 lib/polonium/values_match.rb
polonium-0.3.1 lib/polonium/values_match.rb
polonium-0.3.2 lib/polonium/values_match.rb
polonium-0.2.1 lib/polonium/values_match.rb
polonium-0.2.2 lib/polonium/values_match.rb
polonium-0.3.0 lib/polonium/values_match.rb
polonium-0.1.1 lib/polonium/values_match.rb
polonium-0.2.0 lib/polonium/values_match.rb