Method: Enumerable#pretty_print

Defined in:
lib/jinx/helpers/pretty_print.rb

#pretty_print(q) ⇒ Object

Pretty-prints the content within brackets, as is done by the Array pretty printer.



142
143
144
145
146
147
148
# File 'lib/jinx/helpers/pretty_print.rb', line 142

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