Module: VisualizeInheritance
- Defined in:
- lib/visualize_inheritance.rb,
lib/visualize_inheritance/version.rb
Constant Summary collapse
- VERSION =
"0.0.5"
Class Method Summary collapse
Class Method Details
.bin ⇒ Object
5 6 7 |
# File 'lib/visualize_inheritance.rb', line 5 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
22 23 24 25 26 27 |
# File 'lib/visualize_inheritance.rb', line 22 def self.graph index_file = File.join lib, 'visualize_inheritance', 'templates', 'index.html' csv_file = File.join lib, 'visualize_inheritance', 'templates', 'force.csv' system("cp #{csv} #{csv_file}") system("open #{index_file}") end |
.lib ⇒ Object
9 10 11 |
# File 'lib/visualize_inheritance.rb', line 9 def self.lib File.join root, 'lib' end |
.root ⇒ Object
13 14 15 |
# File 'lib/visualize_inheritance.rb', line 13 def self.root File.dirname __dir__ end |