Skip to content

Enhance RubyAnalyzer to detect instance_methods and more#72

Merged
marcoroth merged 2 commits intomainfrom
enhance-ruby-analyzer
Jan 24, 2023
Merged

Enhance RubyAnalyzer to detect instance_methods and more#72
marcoroth merged 2 commits intomainfrom
enhance-ruby-analyzer

Conversation

@marcoroth
Copy link
Owner

This pull request enhances Phlexing::RubyAnalyzer to also detect const, calls and instance_methods.

Detecting instance_methods could to be useful if we want to include certain modules based on the methods used in the template. For example we could detect Rails helpers this way and include the appropriate ones in the generated code.

Detecting consts within the template could be useful down the road if we are dealing with the rendering of other components in the template and if we want to do some checks around it.

I'm not sure yet what we could do with the calls, but I think it might be useful to have in any case.

@marcoroth marcoroth changed the title Enhance RubyAnalyzer to also detect more things Enhance RubyAnalyzer to detect instance_methods and more Jan 24, 2023
@marcoroth marcoroth merged commit bfab6e9 into main Jan 24, 2023
@marcoroth marcoroth deleted the enhance-ruby-analyzer branch January 24, 2023 00:41
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.

1 participant