Skip to content

Instantly share code, notes, and snippets.

@workmad3
Created June 8, 2010 22:52
Show Gist options
  • Select an option

  • Save workmad3/430758 to your computer and use it in GitHub Desktop.

Select an option

Save workmad3/430758 to your computer and use it in GitHub Desktop.
def hash_args(options = {})
defaults = {:a => 'b', :c => 'd'}
defaults.merge!(options)
puts defaults
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment