Module: FullTime

Defined in:
lib/full_time.rb,
lib/full_time/dsl.rb,
lib/full_time/list.rb,
lib/full_time/company.rb,
lib/full_time/profile.rb,
lib/full_time/project.rb,
lib/full_time/version.rb,
lib/full_time/education.rb,
lib/full_time/employment.rb,
lib/full_time/university.rb,
lib/full_time/certificate.rb,
lib/full_time/certification.rb

Defined Under Namespace

Modules: DSL Classes: Certificate, Certification, Company, Education, Employment, List, Profile, Project, University

Constant Summary collapse

VERSION =
"1.3.0"

Class Method Summary collapse

Class Method Details

.profile(&block) ⇒ Object



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

def profile(&block)
  if block_given?
    @profile = Profile.new
    @profile.instance_eval(&block)
  end

  @profile
end

.render(template_path) ⇒ Object



29
30
31
# File 'lib/full_time.rb', line 29

def render(template_path)
  Tilt.new(template_path).render(profile)
end