Method: ArTeX::PDF#render_collection

Defined in:
lib/artex/pdf.rb

#render_collection(collection, binding, template_name) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/artex/pdf.rb', line 35

def render_collection(collection, binding, template_name)
  content = ""
  
  #TODO refactor
  collection.each do |billing_position|      
      @billing_position = billing_position
      latex = render_to_latex(binding, template_name)        
      content += latex
  end
  return content
end