123456789_123456789_123456789_123456789_123456789_

Class: Set

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/pp.rb

Instance Method Summary

Instance Method Details

#pretty_print(pp)

[ GitHub ]

  
# File 'lib/pp.rb', line 446

def pretty_print(pp)  # :nodoc:
  pp.group(1, '#<Set:', '>') {
    pp.breakable
    pp.group(1, '{', '}') {
      pp.seplist(self) { |o|
        pp.pp o
      }
    }
  }
end

#pretty_print_cycle(pp)

[ GitHub ]

  
# File 'lib/pp.rb', line 457

def pretty_print_cycle(pp)    # :nodoc:
  pp.text sprintf('#<Set: {%s}>', empty? ? '' : '...')
end