rails_best_practices
https://github.com/flyerhzm/rails_best_practices
Ruby
a code metric tool for rails projects
RailsBestPractices::Core::Check#method_missing
method_missing to catch all start and end process for each node type, like
start_def
end_def
start_call
end_call
if there is a "debug" method defined in check, each node will be output.Edit
git clone [email protected]:flyerhzm/rails_best_practices.git
cd rails_best_practices
open lib/rails_best_practices/core/check.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-RailsBestPractices--Core--Check-method_missing-for-pr
# Commit to gitgit add lib/rails_best_practices/core/check.rbgit commit -m "better docs for RailsBestPractices::Core::Check#method_missing"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-RailsBestPractices--Core--Check-method_missing-for-pr
hub pull-request
# Celebrate!