class Resulang::App
Attributes
path[R]
resume[R]
Public Class Methods
new(path:)
click to toggle source
# File lib/resulang/app.rb, line 5 def initialize(path:) @path = path load_app end
Public Instance Methods
processor(output:, format:)
click to toggle source
# File lib/resulang/app.rb, line 14 def processor(output:, format:) Processor.new(app: self, output: output, format: format) end
template_path()
click to toggle source
# File lib/resulang/app.rb, line 10 def template_path File.join(path, 'templates', 'resume.html.erb') end
Private Instance Methods
load_app()
click to toggle source
# File lib/resulang/app.rb, line 46 def load_app unless File.directory?('templates') raise "no Resulang app found at #{path.inspect}: 'templates' directory not found." end load_resume end
load_resume()
click to toggle source
# File lib/resulang/app.rb, line 54 def load_resume @resume = Resulang::Resume.new(path: resume_path) end
resume_path()
click to toggle source
# File lib/resulang/app.rb, line 58 def resume_path File.join(path, 'resume.yaml') end