Method: EventMachine::Connection.new
- Defined in:
- lib/em/connection.rb
.new(sig, *args) ⇒ Object
Override .new so subclasses don’t have to call super and can ignore connection-specific arguments
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/em/connection.rb', line 48 def self.new(sig, *args) allocate.instance_eval do # Store signature @signature = sig # associate_callback_target sig # Call a superclass's #initialize if it has one initialize(*args) # post initialize callback post_init self end end |