]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
[registry] daybreak engine small fix
authorMatthias H <apoc@sixserv.org>
Thu, 20 Feb 2014 20:58:42 +0000 (21:58 +0100)
committerMatthias H <apoc@sixserv.org>
Thu, 20 Feb 2014 20:58:42 +0000 (21:58 +0100)
lib/rbot/registry/daybreak.rb

index 7ec5bd29cebb9ff2d480ebbcc2e0410125155987..5d995379d30de5476f393d9296893e67b1aa70d8 100644 (file)
@@ -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