public
Description: All the extra stuff you could want for the Mack Framework.
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack-more.git
Mack::Utils::Registry is now Mack::Utils::RegistryList [#55 state:resolved]
dsutedja (author)
Sun Jul 27 08:42:47 -0700 2008
commit  35254b2482bfea484ded44ec6a3a24370bd54825
tree    2e325f83ba14c76eb119eca1a53be21a58509e66
parent  2983f2b90d33d89dc1950f6bb9adb4c01d0ebcfb
...
4
5
6
7
 
8
9
10
...
78
79
80
81
 
82
83
84
...
4
5
6
 
7
8
9
10
...
78
79
80
 
81
82
83
84
0
@@ -4,7 +4,7 @@ module Mack
0
     # This is a general purpose Singleton Registry class.
0
     # It takes the drudgery out of creating registry classes, that
0
     # are, let's face it, all pretty much the same.
0
-    class Registry
0
+    class RegistryList
0
       include Singleton
0
       include Extlib::Hook
0
       
0
@@ -78,6 +78,6 @@ module Mack
0
         
0
       end
0
       
0
-    end # Registry
0
+    end # RegistryList
0
   end # Utils
0
 end # Mack
0
\ No newline at end of file
...
1
2
3
4
 
5
6
 
7
8
9
 
10
11
12
...
1
2
3
 
4
5
 
6
7
8
 
9
10
11
12
0
@@ -1,12 +1,12 @@
0
 require 'pathname'
0
 require Pathname(__FILE__).dirname.expand_path.parent.parent + 'spec_helper'
0
 
0
-describe Mack::Utils::Registry do
0
+describe Mack::Utils::RegistryList do
0
 
0
-  class FooRegistry < Mack::Utils::Registry
0
+  class FooRegistry < Mack::Utils::RegistryList
0
   end
0
   
0
-  class BarRegistry < Mack::Utils::Registry
0
+  class BarRegistry < Mack::Utils::RegistryList
0
     def initial_state
0
       [1,2,3]
0
     end
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@ module Mack
0
           EmailRegistry.add(mail)
0
         end
0
         
0
-        class EmailRegistry < Mack::Utils::Registry # :nodoc:
0
+        class EmailRegistry < Mack::Utils::RegistryList # :nodoc:
0
         end
0
         
0
       end # Test

Comments