Method: Cod::Beanstalk::Channel#initialize_copy

Defined in:
lib/cod/beanstalk/channel.rb

#initialize_copy(other) ⇒ Object

Allow #dup on beanstalkd channels, resulting in a new connection to the beanstalkd server.



37
38
39
40
# File 'lib/cod/beanstalk/channel.rb', line 37

def initialize_copy(other)
  super(other)
  initialize(other.tube_name, other.server_url)
end