Class: Zool::KeysProxy
- Inherits:
-
Array
- Object
- Array
- Zool::KeysProxy
- Defined in:
- lib/zool/server_pool.rb
Instance Method Summary collapse
- #<<(key) ⇒ Object
-
#initialize(pool) ⇒ KeysProxy
constructor
A new instance of KeysProxy.
Constructor Details
#initialize(pool) ⇒ KeysProxy
Returns a new instance of KeysProxy.
63 64 65 66 |
# File 'lib/zool/server_pool.rb', line 63 def initialize(pool) @pool = pool super @pool.send(:call_for_pool, :keys) end |
Instance Method Details
#<<(key) ⇒ Object
68 69 70 71 72 |
# File 'lib/zool/server_pool.rb', line 68 def <<(key) @pool.each do |server| server.keys << key end end |