Sha256: f839e2b73db3212e7b7cf6b5ce2ccb715d38b8fa2d48e0127e47f85cc1e0612b
Contents?: true
Size: 627 Bytes
Versions: 2
Compression:
Stored size: 627 Bytes
Contents
require 'acpc_poker_types/match_state' # Receives match state strings. module AcpcPokerBasicProxy module CommunicationLogic class MatchStateReceiver # Receives a match state string from the given +connection+. # @param [#gets] connection The connection from which a match state string should be received. # @return [MatchState] The match state string that was received from the +connection+ or +nil+ if none could be received. def self.receive_match_state(connection) raw_match_state = connection.gets AcpcPokerTypes::MatchState.parse raw_match_state end end end end
Version data entries
2 entries across 2 versions & 1 rubygems