lib/parsley-store.rb in parsley-store-0.1.1 vs lib/parsley-store.rb in parsley-store-0.1.2
- old
+ new
@@ -5,11 +5,11 @@
class ParsleyStore
#database numbers for Redis
LOCAL = 1
SLAVE = 2
- def initialize
- @parser = ScientificNameParser.new(local_db = LOCAL, slave_db = SLAVE)
+ def initialize(local_db = LOCAL, slave_db = SLAVE)
+ @parser = ScientificNameParser.new
@local = Redis.new
@local.select(local_db)
# slave replication is not set up yet, so I comment it out
# @slave = Redis.new
# @slave.select(slave_db)