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.2.0"

Class Method Summary collapse

Class Method Details

.export!(type, template_path) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/full_time.rb', line 25

def self.export!(type, template_path)
  case type
  when :html
    require 'tilt'
    puts Tilt.new(template_path).render(self.profile)
  end
end

.profile(&block) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/full_time.rb', line 16

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

  @profile
end