summaryrefslogtreecommitdiff
path: root/lib/set.rb
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 07:41:30 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-16 07:41:30 +0000
commit5cf43106165b2e7e27380c592e53756d2504fbf0 (patch)
tree4dab788c377baa667b2dac36f5bb9b8913b3fa53 /lib/set.rb
parentdcfcef1cfdc476507f822b03dcb67c1256a7e3a0 (diff)
* lib/set.rb: Enable frozen_string_literal.
* lib/set.rb: Move << out of the begin block that ensures pop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/set.rb')
-rw-r--r--lib/set.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/set.rb b/lib/set.rb
index a0f290ebed..a8f4345f35 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -1,4 +1,6 @@
#--
+# frozen_string_literal: true
+#
# set.rb - defines the Set class
#++
# Copyright (c) 2002-2013 Akinori MUSHA <knu@iDaemons.org>
@@ -534,8 +536,8 @@ class Set
return sprintf('#<%s: {...}>', self.class.name)
end
+ ids << object_id
begin
- ids << object_id
return sprintf('#<%s: {%s}>', self.class, to_a.inspect[1..-2])
ensure
ids.pop