Class: Set

Inherits:
Object show all
Defined in:
lib/pp.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#pretty_print(pp) ⇒ Object

:nodoc:



443
444
445
446
447
448
449
# File 'lib/pp.rb', line 443

def pretty_print(pp)  # :nodoc:
  pp.group(1, "#{self.class.name}[", ']') {
    pp.seplist(self) { |o|
      pp.pp o
    }
  }
end

#pretty_print_cycle(pp) ⇒ Object

:nodoc:



451
452
453
454
# File 'lib/pp.rb', line 451

def pretty_print_cycle(pp)    # :nodoc:
  name = self.class.name
  pp.text(empty? ? "#{name}[]" : "#{name}[...]")
end