Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config or params for truncate very long string. #372

Open
ranska opened this issue Nov 7, 2019 · 1 comment
Open

config or params for truncate very long string. #372

ranska opened this issue Nov 7, 2019 · 1 comment

Comments

@ranska
Copy link

ranska commented Nov 7, 2019

In some big hash. For example api payload.
There are sometimes text and many other keys and value.
Mainly when we use ap the wall object is print but when there is big text. It takes sometime many screens and needs to scroll a lot just to see if a simple attribute is well set.
It can be good if we can truncate those text by passing a truncate param to ap.
like

ap my_object, truncate: 4
# or
ap my_object, string_trucate: 4

# and it will print on screen only the first 4th char of a string

thank for this awesome gem and all your work

@ranska
Copy link
Author

ranska commented Nov 7, 2019

Ps: how can I set label feature request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants