Class: Array
Instance Method Summary collapse
Instance Method Details
#pretty_print(q) ⇒ Object
328 329 330 331 332 333 334 |
# File 'lib/rubysl/prettyprint/pp.rb', line 328 def pretty_print(q) q.group(1, '[', ']') { q.seplist(self) {|v| q.pp v } } end |
#pretty_print_cycle(q) ⇒ Object
336 337 338 |
# File 'lib/rubysl/prettyprint/pp.rb', line 336 def pretty_print_cycle(q) q.text(empty? ? '[]' : '[...]') end |