Class: LicenseFinder::XmlReport
- Defined in:
- lib/license_finder/reports/xml_report.rb
Constant Summary collapse
- ROOT_PATH =
Pathname.new(__FILE__).dirname
- TEMPLATE_PATH =
ROOT_PATH.join('templates')
Instance Method Summary collapse
Methods inherited from Report
Constructor Details
This class inherits a constructor from LicenseFinder::Report
Instance Method Details
#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 |