summaryrefslogtreecommitdiff
path: root/lib/net/ssh/ruby_compat.rb
blob: a07307043b5df78c2895557f35a2ee5aee5cc105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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