Method: Zerg::Support::Sockets::ReceiveMock#initialize
- Defined in:
- lib/zerg_support/sockets/socket_mocks.rb
#initialize(strings = ['']) ⇒ ReceiveMock
Returns a new instance of ReceiveMock.
24 25 26 27 |
# File 'lib/zerg_support/sockets/socket_mocks.rb', line 24 def initialize(strings = ['']) @strings = strings.kind_of?(String) ? [strings] : strings @objects = [] end |