Method: Enumerable#pretty_print_cycle

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

#pretty_print_cycle(q) ⇒ Object

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



151
152
153
# File 'lib/jinx/helpers/pretty_print.rb', line 151

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