summaryrefslogtreecommitdiff
path: root/lib/set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/set.rb')
-rw-r--r--lib/set.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/set.rb b/lib/set.rb
index 43c388c..bfa37d4 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) {