Class: ResumeTools::Exporter

Inherits:
Object
  • Object
show all
Defined in:
lib/resumetools/resume/export.rb

Instance Method Summary collapse

Constructor Details

#initialize(resume) ⇒ Exporter

Returns a new instance of Exporter


4
5
6
7
# File 'lib/resumetools/resume/export.rb', line 4

def initialize(resume)
  @resume = resume
  @content = ""
end

Instance Method Details

#runObject


9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/resumetools/resume/export.rb', line 9

def run
  reset!
  write_header
  blank_line
  
  @resume.sections.each_with_index do |section, n|
    write_section section
    blank_line if (n < @resume.sections.length - 1)
  end
  
  @content
end