diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-14 13:15:33 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-14 13:15:33 +0000 |
commit | 373e87a74db2fd71e870376b743eaad4ed74d42a (patch) | |
tree | db985cfe91dcfb37a661bf868ed1a31b0fd64eed /ext/socket/lib | |
parent | fb2a6ecf9e12b13d535977637abfb2ba84182b6a (diff) | |
download | ruby-373e87a74db2fd71e870376b743eaad4ed74d42a.tar.gz |
* ext/socket/lib/socket.rb: Specify frozen_string_literal: true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/lib')
-rw-r--r-- | ext/socket/lib/socket.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb index 7c66e8f730..d5f66bcd27 100644 --- a/ext/socket/lib/socket.rb +++ b/ext/socket/lib/socket.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'socket.so' require 'io/wait' @@ -747,7 +749,7 @@ class Socket < BasicSocket attr_reader :local_address def inspect # :nodoc: - "\#<#{self.class}: #{@remote_address.inspect_sockaddr} to #{@local_address.inspect_sockaddr}>" + "\#<#{self.class}: #{@remote_address.inspect_sockaddr} to #{@local_address.inspect_sockaddr}>".dup end # Sends the String +msg+ to the source |