lib/duck_puncher/registration.rb in duck_puncher-4.1.0 vs lib/duck_puncher/registration.rb in duck_puncher-4.2.0

- old
+ new

@@ -1,5 +1,6 @@ module DuckPuncher + # @note When updating this file please update comment regarding this module in duck_puncher.rb module Registration def register(target, *mods) options = mods.last.is_a?(Hash) ? mods.pop : {} target = DuckPuncher.lookup_constant target Ducks.list[target] = [] unless Ducks.list.key?(target)