/usr/lib/ruby/vendor_ruby/faker/name.rb is in ruby-faker 1.5.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | module Faker
class Name < Base
flexible :name
class << self
def name
parse('name.name')
end
def first_name; fetch('name.first_name'); end
def last_name; fetch('name.last_name'); end
def prefix; fetch('name.prefix'); end
def suffix; fetch('name.suffix'); end
# Generate a buzzword-laden job title
# Wordlist from http://www.bullshitjob.com/title/
def title; fetch('name.title.descriptor') + ' ' + fetch('name.title.level') + ' ' + fetch('name.title.job'); end
end
end
end
|