Module: OpenxmlDocxTemplater::Debug

Included in:
DocxEruby
Defined in:
lib/openxml_docx_templater/debug.rb

Instance Method Summary collapse

Instance Method Details

#debug?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/openxml_docx_templater/debug.rb', line 5

def debug?
  false
end

#debug_dirObject



17
18
19
# File 'lib/openxml_docx_templater/debug.rb', line 17

def debug_dir
  File.join(File.dirname(__FILE__), '..', '..', 'debug')
end

#debug_file_nameObject



13
14
15
# File 'lib/openxml_docx_templater/debug.rb', line 13

def debug_file_name
  "serenity_debug_#{rand(100)}.rb"
end

#debug_file_pathObject



9
10
11
# File 'lib/openxml_docx_templater/debug.rb', line 9

def debug_file_path
  File.join(debug_dir, debug_file_name)
end