In Files

  • pp.rb

Array

Public Instance Methods

pretty_print(q) click to toggle source
 
               # File pp.rb, line 328
def pretty_print(q)
  q.group(1, '[', ']') {
    q.seplist(self) {|v|
      q.pp v
    }
  }
end
            
pretty_print_cycle(q) click to toggle source
 
               # File pp.rb, line 336
def pretty_print_cycle(q)
  q.text(empty? ? '[]' : '[...]')
end