Module: VisualizeInheritance
- Defined in:
- lib/visualize_inheritance.rb,
lib/visualize_inheritance/version.rb
Constant Summary collapse
- VERSION =
"0.0.10"
Class Method Summary collapse
Class Method Details
.bin ⇒ Object
9 10 11 |
# File 'lib/visualize_inheritance.rb', line 9 def self.bin File.join root, 'bin' end |
.csv ⇒ Object
17 18 19 20 |
# File 'lib/visualize_inheritance.rb', line 17 def self.csv f = File.join bin, 'visualize.sh' system("sh #{f}") end |
.graph ⇒ Object
26 27 28 |
# File 'lib/visualize_inheritance.rb', line 26 def self.graph system("open index.html") end |
.index ⇒ Object
13 14 15 |
# File 'lib/visualize_inheritance.rb', line 13 def self.index File.join root, 'lib', 'visualize_inheritance', 'templates', 'index.html' end |
.root ⇒ Object
5 6 7 |
# File 'lib/visualize_inheritance.rb', line 5 def self.root File.dirname __dir__ end |
.write_index ⇒ Object
22 23 24 |
# File 'lib/visualize_inheritance.rb', line 22 def self.write_index system("cp #{index} ./") end |