def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
# File tmp/rubies/ruby-4.0.0/lib/rubygems/uri.rb, line 111 def password? !!password end