Skip to content

Instantly share code, notes, and snippets.

@mikecmpbll

mikecmpbll/eg.rb Secret

Forked from maasha/gist:af1252a2fe46a7bf41d5
Last active August 29, 2015 14:19
Show Gist options
  • Save mikecmpbll/d3c05c41c26094cc55f5 to your computer and use it in GitHub Desktop.
Save mikecmpbll/d3c05c41c26094cc55f5 to your computer and use it in GitHub Desktop.
def exact_match?(record)
keys = @keys || record.keys
(@keys_only && exact_match_keys?(keys)) ||
(@vals_only && exact_match_values?(record, keys)) ||
exact_match_key_values?(record, keys)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment