Skip to content

Instantly share code, notes, and snippets.

@mixflame
Created October 30, 2012 07:35
Show Gist options
  • Save mixflame/3978809 to your computer and use it in GitHub Desktop.
Save mixflame/3978809 to your computer and use it in GitHub Desktop.
@server_list_hash = Net::HTTP.get('nexusnet.herokuapp.com', '/msl').
split("\n").
collect do |s|
par = s.split("-!!!-")
{:host => par[1], :name => par[0], :port => par[2]}
end
@names = @server_list_hash.collect { |i| i[:name] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment