Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/net/ssh/ruby_compat.rb

Instance Method Summary collapse

Instance Method Details

#bytesizeObject


13
14
15
# File 'lib/net/ssh/ruby_compat.rb', line 13

def bytesize
  self.size
end

#getbyte(index) ⇒ Object


5
6
7
# File 'lib/net/ssh/ruby_compat.rb', line 5

def getbyte(index)
  self[index]
end

#setbyte(index, c) ⇒ Object


8
9
10
# File 'lib/net/ssh/ruby_compat.rb', line 8

def setbyte(index, c)
  self[index] = c
end