0.03
No release in over 3 years
Low commit activity in last 3 years
Find your way around source code written in Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
 Project Readme

Code Explorer

Tools

code-explorer

Starts a local web server which lets you apply the other tools to all *.rb files in a directory subtree.

call-graph

This makes a call graph among methods of a single Ruby file.

I made it to help me orient myself in unfamiliar legacy code and to help identify cohesive parts that could be split out.

class-dependencies

Identifies fully qualified class names and makes an inheritance graph

Requirements

License

MIT

Running from Source

bundle install --path vendor/bundle
bundle exec code-explorer

Example

One file in YaST has around 2700 lines and 73 methods. The call graph below was made with

$ bin/call-graph ../yast/packager/src/modules/Packages.rb
$ dot -Tpng -oPackages.png ../yast/packager/src/modules/Packages.dot

If the resulting size is too big, use ImageMagick:

$ convert Packages.png -resize 1200 Packages-small.png

Packages.png, an example output