From 837babd56459aafc1232a12fbfa783025d619b98 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 6 Nov 2015 03:39:23 +0000 Subject: change DOTQ * defs/id.def (token_ops), parse.y (parser_yylex): change DOTQ from ".?" to "&.". [ruby-core:71363] [Feature #11537] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/net/ftp.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lib/net') diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb index 88d070f9a3..879206c7dd 100644 --- a/lib/net/ftp.rb +++ b/lib/net/ftp.rb @@ -615,15 +615,15 @@ module Net result = String.new end begin - f.?binmode + f&.binmode retrbinary("RETR #{remotefile}", blocksize, rest_offset) do |data| - f.?write(data) - block.?(data) - result.?concat(data) + f&.write(data) + block&.(data) + result&.concat(data) end return result ensure - f.?close + f&.close end end @@ -646,13 +646,13 @@ module Net begin retrlines("RETR #{remotefile}") do |line, newline| l = newline ? line + "\n" : line - f.?print(l) - block.?(line, newline) - result.?concat(l) + f&.print(l) + block&.(line, newline) + result&.concat(l) end return result ensure - f.?close + f&.close end end -- cgit v1.2.3