Skip to content

Instantly share code, notes, and snippets.

@0x0dea

0x0dea/freeze.rb Secret

Created September 9, 2015 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0x0dea/ef95c6760d52cb909e1f to your computer and use it in GitHub Desktop.
Save 0x0dea/ef95c6760d52cb909e1f to your computer and use it in GitHub Desktop.
Hash[*@hosts.sort_by(&:first).map {|key, value| [key, value]}.flatten]
@hosts.sort_by(&:first).to_h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment