Class: BlastRadius::Formatters::HtmlFormatter
- Defined in:
- lib/blast_radius/formatters/html_formatter.rb
Instance Method Summary collapse
-
#format(root_node, options = {}) ⇒ String
Format dependency tree as interactive HTML ER diagram.
Methods inherited from Base
Constructor Details
This class inherits a constructor from BlastRadius::Formatters::Base
Instance Method Details
#format(root_node, options = {}) ⇒ String
Format dependency tree as interactive HTML ER diagram
16 17 18 19 20 21 22 23 24 |
# File 'lib/blast_radius/formatters/html_formatter.rb', line 16 def format(root_node, = {}) @root_node = root_node @options = @all_models = discover_all_models template_content = File.read(template_path) erb = ERB.new(template_content) erb.result(binding) end |