From: Matthias H Date: Thu, 20 Feb 2014 20:58:42 +0000 (+0100) Subject: [registry] daybreak engine small fix X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=8b7f65d0251120b7ca7dda5adef483158a1bcd54;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git [registry] daybreak engine small fix --- diff --git a/lib/rbot/registry/daybreak.rb b/lib/rbot/registry/daybreak.rb index 7ec5bd29..5d995379 100644 --- a/lib/rbot/registry/daybreak.rb +++ b/lib/rbot/registry/daybreak.rb @@ -156,7 +156,7 @@ class Registry # like Hash#each def each(&block) - registry.each_key do |key| + registry.each do |key| block.call(key, self[key]) end end @@ -165,14 +165,14 @@ class Registry # like Hash#each_key def each_key(&block) - registry.each_key do |key| + registry.each do |key| block.call(key) end end # like Hash#each_value def each_value(&block) - registry.each_key do |key| + registry.each do |key| block.call(self[key]) end end