Class: CodeGraph::Inheritance
- Inherits:
-
Object
- Object
- CodeGraph::Inheritance
- Defined in:
- lib/codegraph/inheritance.rb
Constant Summary collapse
- CLASS_REGEXP =
/class\s+([A-Z][\w:]*)(?:\s*<\s*([A-Z][\w:]*))?/
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(dir, options = {}) ⇒ Inheritance
constructor
A new instance of Inheritance.
Constructor Details
#initialize(dir, options = {}) ⇒ Inheritance
Returns a new instance of Inheritance.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/codegraph/inheritance.rb', line 7 def initialize(dir, ={}) @dir = dir @options = @nodes = {} @edges = {} @g = GraphViz.new( @options[:graph_name], label: label, type: :digraph, use: @options[:engine], rankdir: 'RL' ) end |
Instance Method Details
#generate ⇒ Object
22 23 24 25 |
# File 'lib/codegraph/inheritance.rb', line 22 def generate directory_scan output end |