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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make method_size_cutoff configurable #2230

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

takaebato
Copy link

@takaebato takaebato commented Jan 3, 2022

WHAT & WHY

The purpose of this PR is to enable method_size_cutoff to be configured through Pry.config.method_size_cutoff.
Currently, method_size_cutoff is fixed to 30, but it might be useful that users can control the cutoff size.

Checked

  1. pry_instance.config.method_size_cutoff is configured by adding Pry.config.method_size_cutoff = {integer} to .pryrc, and whereami works as expected.

  2. Usage of method_size_cutoff is limited in pry/pry repository among pry/* repositories.
    The variable can be accessed from outside of the class by Pry::Command::Whereami.method_size_cutoff, but that does not happen in at least 16 repositories of pry organization.

What do you think about it?馃

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

Successfully merging this pull request may close these issues.

None yet

1 participant