Skip to content

Instantly share code, notes, and snippets.

@fntsrlike
Last active February 7, 2017 07:07
Show Gist options
  • Save fntsrlike/1ac78343303798674a5cf5a13963d407 to your computer and use it in GitHub Desktop.
Save fntsrlike/1ac78343303798674a5cf5a13963d407 to your computer and use it in GitHub Desktop.
Ruby Skills: 記錄一些 Ruby 技巧
# key-value to string
{a: 100, b: 200}.map{|k,v| "#{k}=#{v}"}.join('&')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment