Method: Limarka::Conversor.tex_file

Defined in:
lib/limarka/conversor.rb

.tex_file(configuracao) ⇒ Object



232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
# File 'lib/limarka/conversor.rb', line 232

def self.tex_file(configuracao)
  if (configuracao['graduacao'] and configuracao['projeto']) then
    'xxx-Monografia-projeto.tex'
  elsif (configuracao['graduacao'] and not configuracao['projeto']) then
    'xxx-Monografia.tex'
  elsif (configuracao['especializacao'] and configuracao['projeto']) then
    'xxx-TFC-projeto.tex'
  elsif (configuracao['especializacao'] and not configuracao['projeto']) then
    'xxx-TFC.tex'
  elsif (configuracao['mestrado'] and configuracao['projeto']) then
    'xxx-Dissertacao-projeto.tex'
  elsif (configuracao['mestrado'] and not configuracao['projeto']) then
    'xxx-Dissertacao.tex'
  elsif (configuracao['doutorado'] and configuracao['projeto']) then
    'xxx-Tese-projeto.tex'
  elsif (configuracao['doutorado'] and not configuracao['projeto']) then
    'xxx-Tese.tex'
  else
    # valor padrão, caso não configurado.
    'xxx-Monografia-projeto.tex'
  end

end