lib/wyrm/pump_maker.rb in wyrm-0.2.0 vs lib/wyrm/pump_maker.rb in wyrm-0.2.1

- old
+ new

@@ -1,19 +1,17 @@ require 'wyrm/db_pump' -class Object +module PumpMaker def call_or_self( maybe_callable ) if maybe_callable.respond_to? :call maybe_callable.call( self ) else maybe_callable end end -end -module PumpMaker def make_pump( db, pump_thing ) - call_or_self(pump_thing) || DbPump.new( db, nil ) + call_or_self(pump_thing) || DbPump.new( db: db ) end def maybe_deebe( db_or_string ) case db_or_string when String