Module: FFaker::NameKR

Extended by:
ModuleUtils, NameKR
Included in:
NameKR
Defined in:
lib/ffaker/name_kr.rb

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#first_nameObject


16
17
18
# File 'lib/ffaker/name_kr.rb', line 16

def first_name
  FIRST_NAMES.sample
end

#last_nameObject


20
21
22
# File 'lib/ffaker/name_kr.rb', line 20

def last_name
  LAST_NAMES.sample
end

#nameObject Also known as: last_first


8
9
10
# File 'lib/ffaker/name_kr.rb', line 8

def name
  "#{last_name}#{first_name}"
end

#name_with_spaceObject


12
13
14
# File 'lib/ffaker/name_kr.rb', line 12

def name_with_space
  "#{last_name} #{first_name}"
end