Skip to content

Instantly share code, notes, and snippets.

@aef
Created November 17, 2011 05:37
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 aef/1372453 to your computer and use it in GitHub Desktop.
Save aef/1372453 to your computer and use it in GitHub Desktop.
require 'set'
def self.`(string)
string.split(/,/).map{|string| eval string}.to_set
end
`:a, :b, :c`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment