awesome-print / awesome_print

Pretty print your Ruby objects with style -- in full color and with proper indentation
http://github.com/michaeldv/awesome_print
MIT License
4.07k stars 454 forks source link

Limit array and hash while processing #286

Open gerrywastaken opened 7 years ago

gerrywastaken commented 7 years ago

In https://github.com/awesome-print/awesome_print/pull/246 @waldyr mentioned the following:

  • [ ] Limit array while processing ...
  • limiting an array could be way better if we limit while processing.

I'm not 100% sure what was meant by this and don't have time right now to look into it, but will do so at a later date.

Edit: The same fix can likely be applied to hashes - https://github.com/awesome-print/awesome_print/pull/247#issue-160560406

gerrywastaken commented 7 years ago

@waldyr provided some awesome info on this: https://github.com/awesome-print/awesome_print/pull/246#issuecomment-261670428