class Resulang::Template
Attributes
template_path[R]
Any 'attr_reader' attributes defined here will be available in the template.
Public Class Methods
new(resume:, path:)
click to toggle source
Calls superclass method
# File lib/resulang/template.rb, line 11 def initialize(resume:, path:) @template_path = path # Delegate everything else to resume allows code within the template to # do things like <%= personal.name %> which is the equivalent of # <%= resume.personal.name %>. super(resume) end
Public Instance Methods
process()
click to toggle source
# File lib/resulang/template.rb, line 20 def process ERB.new(File.read(template_path)).result(binding) end