Method: IsoDoc::Function::ToWordHtml#init_file

Defined in:
lib/isodoc/function/to_word_html.rb

#init_file(filename, debug) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/isodoc/function/to_word_html.rb', line 15

def init_file(filename, debug)
  filepath = Pathname.new(filename)
  filename = filepath.sub_ext("").sub(/\.presentation$/, "").to_s
  dir = init_dir(filename, debug)
  @filename = filename
  @localdir = @baseassetpath || filepath.parent.to_s
  @localdir += "/"
  @sourcedir = @localdir
  @sourcefilename and
    @sourcedir = "#{Pathname.new(@sourcefilename).parent}/"
  [filename, dir]
end