Sha256: 39880f27a89a8a752eb7c9fde85c4e0257122317c758a83dda8385760479434c

Contents?: true

Size: 431 Bytes

Versions: 11

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true

module FFaker
  module Skill
    extend ModuleUtils
    extend self

    def tech_skill
      fetch_sample(TECH_SKILLS)
    end

    def tech_skills(num = 3)
      fetch_sample(TECH_SKILLS, count: num)
    end

    def specialty
      format('%s %s', fetch_sample(SPECIALTY_START), fetch_sample(SPECIALTY_END))
    end

    def specialties(num = 3)
      (1..num).map { specialty }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ffaker-2.22.0 lib/ffaker/skill.rb
ffaker-2.21.0 lib/ffaker/skill.rb
ffaker-2.20.0 lib/ffaker/skill.rb
ffaker-2.19.0 lib/ffaker/skill.rb
ffaker-2.18.0 lib/ffaker/skill.rb
ffaker-2.17.0 lib/ffaker/skill.rb
ffaker-2.16.0 lib/ffaker/skill.rb
ffaker-2.15.0 lib/ffaker/skill.rb
ffaker-2.14.0 lib/ffaker/skill.rb
ffaker-2.13.0 lib/ffaker/skill.rb
ffaker-2.12.0 lib/ffaker/skill.rb