Class: Forgery::Personal

Inherits:
Forgery show all
Defined in:
lib/forgery/forgery/personal.rb

Constant Summary

Constants inherited from Forgery

VERSION

Class Method Summary collapse

Methods inherited from Forgery

Extend, dictionaries, formats, load_from!, load_paths, rails?, rails_root

Class Method Details

.abbreviated_genderObject


7
8
9
# File 'lib/forgery/forgery/personal.rb', line 7

def self.abbreviated_gender
  gender[0,1]
end

.genderObject


3
4
5
# File 'lib/forgery/forgery/personal.rb', line 3

def self.gender
  dictionaries[:genders].random.unextend
end

.languageObject


19
20
21
# File 'lib/forgery/forgery/personal.rb', line 19

def self.language
  dictionaries[:languages].random.unextend
end

.raceObject


15
16
17
# File 'lib/forgery/forgery/personal.rb', line 15

def self.race
  dictionaries[:races].random.unextend
end

.shirt_sizeObject


11
12
13
# File 'lib/forgery/forgery/personal.rb', line 11

def self.shirt_size
  dictionaries[:shirt_sizes].random.unextend
end