Skip to content

Instantly share code, notes, and snippets.

@soveran
Created August 17, 2011 14:09
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 soveran/1151591 to your computer and use it in GitHub Desktop.
Save soveran/1151591 to your computer and use it in GitHub Desktop.
require "ohm"
require "pp"
class Foo < Ohm::Model
def my_strings
key[:my_strings]
end
end
f = Foo.create
f.my_strings.sadd("hello")
f.my_strings.sadd("world")
pp f.my_strings.smembers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment