End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::FTP#binary=
binary=(newmode)
lib/net/ftp.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/net/ftp.rb, line 287
def binary=(newmode)
if newmode != @binary
@binary = newmode
send_type_command if @logged_in
end
end
A setter to toggle transfers in binary mode. newmode is either true or false