Class: Faker::Name
Class Method Summary
collapse
Methods inherited from Base
bothify, fetch, letterify, numerify
Class Method Details
.first_name ⇒ Object
9
|
# File 'lib/faker/name.rb', line 9
def first_name; fetch('name.first_name'); end
|
.last_name ⇒ Object
10
|
# File 'lib/faker/name.rb', line 10
def last_name; fetch('name.last_name'); end
|
.name ⇒ Object
5
6
7
|
# File 'lib/faker/name.rb', line 5
def name
fetch('name.formats').collect {|meth| self.send(meth) }.join(' ')
end
|
.prefix ⇒ Object
11
|
# File 'lib/faker/name.rb', line 11
def prefix; fetch('name.prefix'); end
|
.suffix ⇒ Object
12
|
# File 'lib/faker/name.rb', line 12
def suffix; fetch('name.suffix'); end
|