VisualizeInheritance
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'visualize_inheritance'
And then execute:
$ bundle
Or install it yourself as:
$ gem install visualize_inheritance
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( https://github.com/[my-github-username]/visualize_inheritance/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Visualizing Inheritance Structure in Ruby
This code uses a simple Bash script combined with a force directed graph in D3 to visualize the inheritance structure of a Ruby project.
Put this in the main folder of the project. Upon running the bash script create_graph.sh, it will scan the lib folder for all classes, and then create a force directed graph in a browser window using D3.