Class: OpenxmlDocxTemplater::LiteralLine

Inherits:
CodeLine show all
Defined in:
lib/openxml_docx_templater/line.rb

Instance Attribute Summary

Attributes inherited from Line

#text

Instance Method Summary collapse

Methods inherited from CodeLine

#escape_code

Methods inherited from Line

code, #initialize, literal, string, text, #to_s

Constructor Details

This class inherits a constructor from OpenxmlDocxTemplater::Line

Instance Method Details

#to_bufObject



59
60
61
# File 'lib/openxml_docx_templater/line.rb', line 59

def to_buf
  " _buf << (#{escape_code(@text)}).to_s;"
end