From a133fdd4e8fb6f850aafda4ba7a2bad7bbf98b69 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 24 Feb 2010 13:05:55 -0500 Subject: [PATCH] minor: readme fix --- README.rdoc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.rdoc b/README.rdoc index b18ffb5..c504d87 100644 --- a/README.rdoc +++ b/README.rdoc @@ -9,15 +9,15 @@ Here's a quick code sample. See the MongoDB Ruby Tutorial require 'mongo' include Mongo - @db = Connection.new.db('sample-db') - @coll = db.collection('test') + db = Connection.new.db('sample-db') + coll = db.collection('test') - @coll.remove + coll.remove 3.times do |i| - @coll.insert({'a' => i+1}) + coll.insert({'a' => i+1}) end - puts "There are #{@coll.count()} records. Here they are:" - @coll.find().each { |doc| puts doc.inspect } + puts "There are #{coll.count()} records. Here they are:" + coll.find().each { |doc| puts doc.inspect } = Installation