Skip to content

Instantly share code, notes, and snippets.

@emiltin
Created April 15, 2010 00:09
Show Gist options
  • Save emiltin/366505 to your computer and use it in GitHub Desktop.
Save emiltin/366505 to your computer and use it in GitHub Desktop.
need = [:a,:b]
attributes = {:a=>3,:b=>nil}
valid = need&attributes.keys == need
puts valid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment