Method: LicenseFinder::XmlReport#to_s

Defined in:
lib/license_finder/reports/xml_report.rb

#to_s(filename = TEMPLATE_PATH.join("#{template_name}.erb")) ⇒ Object



8
9
10
11
# File 'lib/license_finder/reports/xml_report.rb', line 8

def to_s(filename = TEMPLATE_PATH.join("#{template_name}.erb"))
  template = ERB.new(filename.read, nil, '-')
  template.result(binding)
end