Created
April 8, 2011 14:19
-
-
Save markmcspadden/909928 to your computer and use it in GitHub Desktop.
Add a SetOfStrings class as a SERIALIZABLE_TYPE to allow a set of strings to be posted as a primitive type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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