class RomSqlGraph::HtmlGeneration
Attributes
edges[R]
Public Class Methods
new(edges)
click to toggle source
# File lib/rom_sql_graph/html_generation.rb, line 7 def initialize(edges) @edges = edges end
Public Instance Methods
call()
click to toggle source
# File lib/rom_sql_graph/html_generation.rb, line 11 def call html = ERB.new(File.read("#{File.dirname(__FILE__)}/templates/graph.erb")).result binding File.open("#{Dir.pwd}/graph.html", 'w') { |file| file.write(html) } end