class Yorinter::PrintableDocument

Attributes

binding_object[RW]
code[RW]
helper[RW]
input_format[RW]
model[RW]
model_endpoint[RW]
name[RW]
options[RW]
output_format[RW]
style[RW]
template[RW]
version[RW]

Public Class Methods

new(params = {}) click to toggle source
# File lib/yorinter/printable_document.rb, line 5
def initialize params = {}
  [:name, :code, :version, :template, :helper, :style,
    :model, :model_endpoint, :binding_object,
    :input_format, :output_format, :options].each do |field|
    send("#{field}=".to_sym, params[field]) if params[field]
  end
end

Public Instance Methods

render(engine, params = {}) click to toggle source
# File lib/yorinter/printable_document.rb, line 13
def render engine, params = {}, options = {}
  engine.new(self, params, options).render
end