In Files

  • pp.rb

Array

Public Instance Methods

pretty_print(q) click to toggle source
 
               # File pp.rb, line 301
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 309
def pretty_print_cycle(q)
  q.text(empty? ? '[]' : '[...]')
end