class Resulang::App::Processor

Attributes

app[R]
format[R]
output[R]

Public Class Methods

new(app:, output:, format:) click to toggle source
# File lib/resulang/app.rb, line 21
def initialize(app:, output:, format:)
  @app    = app
  @output = output
  @format = format
end

Public Instance Methods

filename() click to toggle source
# File lib/resulang/app.rb, line 27
def filename
  File.extname(output) == ".#{format}" ? output : "#{output}.#{format}"
end
process() click to toggle source
# File lib/resulang/app.rb, line 31
def process
  case format.to_sym
    when :html then process_html
  end
end

Private Instance Methods

process_html() click to toggle source
# File lib/resulang/app.rb, line 39
def process_html
  Resulang::Template.new(resume: app.resume, path: app.template_path).process
end