Sha256: 38eafc2009eedbc899048ab3ee2526f6ddc29e37e260a49fc5e40bdcc5edeacf

Contents?: true

Size: 399 Bytes

Versions: 35

Compression:

Stored size: 399 Bytes

Contents

require 'thread'

class String
  if RUBY_VERSION < "1.9"
    def getbyte(index)
      self[index]
    end
    def setbyte(index, c)
      self[index] = c
    end
  end
end

module Net; module SSH
  
  # This class contains miscellaneous patches and workarounds
  # for different ruby implementations.
  class Compat
    def self.io_select(*params)
      IO.select(*params)
    end
  end
  
end; end

Version data entries

35 entries across 32 versions & 3 rubygems

Version Path
net-ssh-4.1.0.beta1 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.1 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.1.rc2 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.1.rc1 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.rc3 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.rc2 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.rc1 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.beta4 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.beta3 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.beta2 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.beta1 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.alpha4 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.alpha3 lib/net/ssh/ruby_compat.rb
net-ssh-4.0.0.alpha2 lib/net/ssh/ruby_compat.rb