From 3ebd72f6ad6fc020d84e7f06595e35c1b26760ed Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Tue, 28 Feb 2012 23:47:47 -0500 Subject: [PATCH] wherps, should have been using SMEMBER ... and pp --- redis-with-ruby/in-and-out.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/redis-with-ruby/in-and-out.rb b/redis-with-ruby/in-and-out.rb index 042ae6d..19838ac 100644 --- a/redis-with-ruby/in-and-out.rb +++ b/redis-with-ruby/in-and-out.rb @@ -1,6 +1,7 @@ require 'redis/connection/hiredis' require 'redis' +require 'pp' require 'yaml' @@ -27,8 +28,8 @@ def main puts redis.sadd('hamsters', 'walter') puts redis.get('foo') - puts YAML.load_documents(redis.get('derp'))[0] - puts redis.sinter('hamsters') + pp YAML.load_documents(redis.get('derp'))[0] + puts redis.smembers('hamsters') end