Class: Array
Overview
:nodoc:
Instance Method Summary collapse
-
#pretty_print(q) ⇒ Object
:nodoc:.
-
#pretty_print_cycle(q) ⇒ Object
:nodoc:.
Instance Method Details
#pretty_print(q) ⇒ Object
:nodoc:
358 359 360 361 362 363 364 |
# File 'lib/pp.rb', line 358 def pretty_print(q) # :nodoc: q.group(1, '[', ']') { q.seplist(self) {|v| q.pp v } } end |
#pretty_print_cycle(q) ⇒ Object
:nodoc:
366 367 368 |
# File 'lib/pp.rb', line 366 def pretty_print_cycle(q) # :nodoc: q.text(empty? ? '[]' : '[...]') end |