3

What is the Crystal equivalent shard for "pp" used in Ruby for pretty printing complex data structures ?

JCLL
  • 5,379
  • 5
  • 44
  • 64

1 Answers1

6

PrettyPrint is a part of a Crystal stdlib.

In short, you can just do p obj for "inspect" style output, pp obj for "pretty inspect" style output.

rogerdpack
  • 62,887
  • 36
  • 269
  • 388
Vitalii Elenhaupt
  • 7,146
  • 3
  • 27
  • 43