lib/picky/sources/wrappers/base.rb in picky-2.7.0 vs lib/picky/sources/wrappers/base.rb in picky-3.0.0.pre1
- old
+ new
@@ -1,25 +1,29 @@
-module Sources
+module Picky
- # Source wrappers can be used to rewrite data before it goes into the index.
- #
- # For example if you want to normalize data.
- #
- module Wrappers # :nodoc:all
+ module Sources
- class Base
+ # Source wrappers can be used to rewrite data before it goes into the index.
+ #
+ # For example if you want to normalize data.
+ #
+ module Wrappers # :nodoc:all
- attr_reader :source
+ class Base
- # Wraps an indexing category.
- #
- def initialize source
- @source = source
- end
+ attr_reader :source
- # Default is delegation for all methods
- #
- delegate :harvest, :connect_backend, :take_snapshot, :key_format, :to => :source
+ # Wraps an indexing category.
+ #
+ def initialize source
+ @source = source
+ end
+
+ # Default is delegation for all methods
+ #
+ delegate :harvest, :connect_backend, :take_snapshot, :key_format, :to => :source
+
+ end
end
end
\ No newline at end of file