metasploit-framework/lib/net/ssh/ruby_compat.rb

7 lines
97 B
Ruby

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