Class: Array
Instance Method Summary collapse
Instance Method Details
#pretty_print(q) ⇒ Object
336 337 338 339 340 341 342 |
# File 'lib/pp.rb', line 336 def pretty_print(q) q.group(1, '[', ']') { q.seplist(self) {|v| q.pp v } } end |
#pretty_print_cycle(q) ⇒ Object
344 345 346 |
# File 'lib/pp.rb', line 344 def pretty_print_cycle(q) q.text(empty? ? '[]' : '[...]') end |