summaryrefslogtreecommitdiff
path: root/lib/net/ssh/buffer.rb
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2017-05-27 07:44:06 +0200
committerGitHub <noreply@github.com>2017-05-27 07:44:06 +0200
commit5c8676541ce14478397be1e654521a75e64d870c (patch)
tree5bd0bce8bf1ed0a3d9dd989c820273e7e5302cd7 /lib/net/ssh/buffer.rb
parent3bacdb6a55d13898ed5b21176ee36d6d5cfd837c (diff)
parent705abfb945a93672b1b8da487a1dd57fa0ba0c80 (diff)
downloadnet-ssh-3-1-release.tar.gz
Merge pull request #523 from camertron/3-1-release3-1-release
Ruby 2.4 compatibility
Diffstat (limited to 'lib/net/ssh/buffer.rb')
-rw-r--r--lib/net/ssh/buffer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/buffer.rb b/lib/net/ssh/buffer.rb
index d0c4ced..563966a 100644
--- a/lib/net/ssh/buffer.rb
+++ b/lib/net/ssh/buffer.rb
@@ -152,7 +152,7 @@ module Net; module SSH
end
# Reads all data up to and including the given pattern, which may be a
- # String, Fixnum, or Regexp and is interpreted exactly as String#index
+ # String, Integer, or Regexp and is interpreted exactly as String#index
# does. Returns nil if nothing matches. Increments the position to point
# immediately after the pattern, if it does match. Returns all data up to
# and including the text that matched the pattern.
@@ -160,7 +160,7 @@ module Net; module SSH
index = @content.index(pattern, @position) or return nil
length = case pattern
when String then pattern.length
- when Fixnum then 1
+ when Integer then 1
when Regexp then $&.length
end
index && read(index+length)