We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a82de commit f467028Copy full SHA for f467028
lib/set.rb
@@ -822,13 +822,14 @@ def inspect
822
alias to_s inspect
823
824
def pretty_print(pp) # :nodoc:
825
- pp.text sprintf('#<%s: {', self.class.name)
826
- pp.nest(1) {
827
- pp.seplist(self) { |o|
828
- pp.pp o
+ pp.group(1, sprintf('#<%s:', self.class.name), '>') {
+ pp.breakable
+ pp.group(1, '{', '}') {
+ pp.seplist(self) { |o|
829
+ pp.pp o
830
+ }
831
}
832
- pp.text "}>"
833
end
834
835
def pretty_print_cycle(pp) # :nodoc:
0 commit comments