Method: ExcelTemplating::DocumentDsl#template

Defined in:
lib/excel_templating/document_dsl.rb

#template(path) ⇒ Object

Parameters:

  • path (String)

    Set the path to the template for this document class.

Raises:

  • (ArgumentError)


10
11
12
13
# File 'lib/excel_templating/document_dsl.rb', line 10

def template(path)
  raise ArgumentError, "Template path must be a string." unless path.is_a?(String)
  @template_path = path
end