summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-06 03:39:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-06 03:39:23 +0000
commit837babd56459aafc1232a12fbfa783025d619b98 (patch)
tree72698c46f54d3616d58b62dd2ebb14ec90147a9e /lib
parentdfa75017bea479c829db9f967509caa95411361e (diff)
downloadruby-837babd56459aafc1232a12fbfa783025d619b98.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/net/ftp.rb18
1 files changed, 9 insertions, 9 deletions
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