Sha256: 9ec23157c16ad297a0e52f3a22d3b57cc54ae5ba4a3aa38156ad2c04b17a3c67

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

module Backport
  module Server
    module Connectable
      def tick
        clients.each do |client|
          input = client.read
          client.sending input unless input.nil?
        end
      end

      def start
        clients.map(&:run)
      end

      def stopping
        clients.map(&:stop)
      end

      protected

      def clients
        @clients ||= []
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backport-0.1.0 lib/backport/server/connectable.rb