class Proforma::HtmlRenderer::ProformaWriter
This class connects each Proforma
object to its proper template for rendering.
Constants
- NAMES_BY_CLASS
Attributes
object_writer[R]
Public Class Methods
instance()
click to toggle source
# File lib/proforma/html_renderer/proforma_writer.rb, line 26 def instance @instance ||= new end
new(object_writer: ObjectWriter.new(names_by_class: NAMES_BY_CLASS))
click to toggle source
# File lib/proforma/html_renderer/proforma_writer.rb, line 46 def initialize(object_writer: ObjectWriter.new(names_by_class: NAMES_BY_CLASS)) @object_writer = object_writer end