123456789_123456789_123456789_123456789_123456789_

Class: Array

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/pp.rb

Instance Method Summary

Instance Method Details

#pretty_print(q)

[ GitHub ]

  
# File 'lib/pp.rb', line 366

def pretty_print(q) # :nodoc:
  q.group(1, '[', ']') {
    q.seplist(self) {|v|
      q.pp v
    }
  }
end

#pretty_print_cycle(q)

[ GitHub ]

  
# File 'lib/pp.rb', line 374

def pretty_print_cycle(q) # :nodoc:
  q.text(empty? ? '[]' : '[...]')
end