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

Add support for generating and parsing method visibility #68

Open
AaronC81 opened this issue Mar 27, 2020 · 0 comments
Open

Add support for generating and parsing method visibility #68

AaronC81 opened this issue Mar 27, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@AaronC81
Copy link
Owner

AaronC81 commented Mar 27, 2020

Is your feature request related to a problem? Please describe.
Brain Freeze currently generates RBIs for all methods, not just public ones. Fixing this would require Parlour being able to parse and consequently generate method visibility.

Describe the solution you'd like
Method RBI objects should have a visibility field, which is populated based on:

  • Class context changes, like private in a class body
  • Class calls with symbol arguments, like private :x, :y, :z in a class body
  • Class calls with a definition as an argument, like private def ... end
@AaronC81 AaronC81 added the enhancement New feature or request label Mar 27, 2020
@AaronC81 AaronC81 added this to the Parlour 3.0 milestone Mar 28, 2020
@AaronC81 AaronC81 modified the milestones: Parlour 3.0, Parlour 3.1 May 15, 2020
@AaronC81 AaronC81 removed this from the Parlour 3.1 milestone Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant