Module: MyLastCV

Defined in:
lib/my_last_cv.rb,
lib/my_last_cv/style.rb,
lib/my_last_cv/parser.rb,
lib/my_last_cv/version.rb,
lib/my_last_cv/renderer.rb

Defined Under Namespace

Classes: Parser, Renderer, Style

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.generate(input_path, output_path, style: Style.new) ⇒ Object



7
8
9
10
11
# File 'lib/my_last_cv.rb', line 7

def self.generate(input_path, output_path, style: Style.new)
  md = File.read(input_path)
  parsed = Parser.new(md).parse
  Renderer.new(parsed, style: style).to_pdf(output_path)
end