aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-14 08:46:13 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-07-14 08:46:13 +0000
commit48e2f75b3f38ef0631c302f25448c582c20e793e (patch)
treecbe2114647b561febd6ceaa59adc39ec0923c45f /lib
parent8e49337849ff5f5edd0e8fc93b5ff3b85cca6226 (diff)
downloadruby-48e2f75b3f38ef0631c302f25448c582c20e793e.tar.gz
Alias Set#to_s to #inspect [ruby-core:81753] [Feature #13676]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/set.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/set.rb b/lib/set.rb
index 43c388ca90..bfa37d4dc0 100644
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -569,6 +569,8 @@ class Set
end
end
+ alias to_s inspect
+
def pretty_print(pp) # :nodoc:
pp.text sprintf('#<%s: {', self.class.name)
pp.nest(1) {