lib/feeder.rb in feeder-0.1.0 vs lib/feeder.rb in feeder-0.2.0
- old
+ new
@@ -1,4 +1,18 @@
require "feeder/engine"
+require "feeder/configuration"
module Feeder
+
+ class << self
+ def config
+ @configuration ||= Feeder::Configuration.new
+ end
+
+ def configure
+ raise ArgumentError, "No block provided" unless block_given?
+
+ yield config
+ end
+ end
+
end