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