Sha256: b30daeac6ea9633ac1939c40e55f0391b281419e4e1acb496a65ca5a4d552963
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
# frozen_string_literal: true require 'singleton' class Clients include Singleton def initialize @clients = {} end def [](client_name) @clients[client_name] ||= TestClient.new end def close @clients.values.each(&:close) end end def client(client_name = nil) client_name ||= 'client' client_name = client_name.strip Clients.instance[client_name] end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ftpd-2.0.1 | features/step_definitions/client.rb |
ftpd-2.0.0 | features/step_definitions/client.rb |