Class: Docxtor::TemplateParser
- Inherits:
-
Object
- Object
- Docxtor::TemplateParser
- Defined in:
- lib/docxtor/template_parser.rb
Constant Summary collapse
- FILES_PATTERN =
File.join('**', '{*,.}{xml,rels}')
Instance Attribute Summary collapse
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
-
#initialize(template) ⇒ TemplateParser
constructor
A new instance of TemplateParser.
- #parts ⇒ Object
Constructor Details
#initialize(template) ⇒ TemplateParser
Returns a new instance of TemplateParser.
7 8 9 |
# File 'lib/docxtor/template_parser.rb', line 7 def initialize(template) @template = template || File.join(File.dirname(__FILE__), "..", "..", "templates", "default") end |
Instance Attribute Details
#template ⇒ Object
Returns the value of attribute template.
3 4 5 |
# File 'lib/docxtor/template_parser.rb', line 3 def template @template end |
Instance Method Details
#parts ⇒ Object
11 12 13 |
# File 'lib/docxtor/template_parser.rb', line 11 def parts @parts ||= parse end |