Skip to content

Instantly share code, notes, and snippets.

@markmcspadden
Created April 8, 2011 14:19
Add a SetOfStrings class as a SERIALIZABLE_TYPE to allow a set of strings to be posted as a primitive type
module Fluidinfo
class SetOfStrings < Array; end
SERIALIZABLE_TYPES << SetOfStrings
end
# Use: strings = Fluidinfo::SetOfStrings["a", "b", "c"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment