Class: Set

Inherits:
Object show all
Defined in:
lib/perception/ppp.rb

Pretty Print Patches collapse

Instance Method Details

#pretty_print(q) ⇒ String

Returns:



365
366
367
368
369
370
371
# File 'lib/perception/ppp.rb', line 365

def pretty_print(q)
  q.group(1, '{', '}') {
    q.seplist(self) {|v|
      q.pp v
    }
  }
end

#pretty_print_cycle(q) ⇒ Object



374
375
376
# File 'lib/perception/ppp.rb', line 374

def pretty_print_cycle(q)
  q.text(empty? ? '{}' : '{...}')
end