Class: Resume::Resume

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

Defined Under Namespace

Classes: ResumeHandler

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Resume

Starts a resume definition block



20
21
22
23
24
25
26
27
# File 'lib/resume.rb', line 20

def initialize &block
  rh = ResumeHandler.new
  block.arity < 1 ? rh.instance_eval(&block) : block.call(rh)
  @about = rh.about
  @schools = rh.schools
  @jobs = rh.jobs
  @sections = rh.sections
end

Instance Attribute Details

#aboutObject (readonly)

Returns the value of attribute about.



18
19
20
# File 'lib/resume.rb', line 18

def about
  @about
end

#jobsObject (readonly)

Returns the value of attribute jobs.



18
19
20
# File 'lib/resume.rb', line 18

def jobs
  @jobs
end

#schoolsObject (readonly)

Returns the value of attribute schools.



18
19
20
# File 'lib/resume.rb', line 18

def schools
  @schools
end

#sectionsObject (readonly)

Returns the value of attribute sections.



18
19
20
# File 'lib/resume.rb', line 18

def sections
  @sections
end