lib/picky/indexing/bundle/memory.rb in picky-2.7.0 vs lib/picky/indexing/bundle/memory.rb in picky-3.0.0.pre1
- old
+ new
@@ -1,19 +1,24 @@
-# encoding: utf-8
-#
-module Indexing # :nodoc:all
+module Picky
- module Bundle
+ # encoding: utf-8
+ #
+ module Indexing # :nodoc:all
- # The memory version dumps its generated indexes to disk
- # (mostly JSON) to load them into memory on startup.
- #
- class Memory < Base
+ module Bundle
- # We're using files for the memory backend.
- # E.g. dump writes files.
+ # The memory version dumps its generated indexes to disk
+ # (mostly JSON) to load them into memory on startup.
#
- alias backend files
+ class Memory < Base
+
+ def initialize name, category, *args
+ super name, category, *args
+
+ @backend = Backend::Files.new self
+ end
+
+ end
end
end
\ No newline at end of file