Class: ChineseFaker::Name
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.first_name ⇒ Object
10 |
# File 'lib/chinese_faker/name.rb', line 10 def first_name; fetch('name.first_name'); end |
.last_name ⇒ Object
11 |
# File 'lib/chinese_faker/name.rb', line 11 def last_name; fetch('name.last_name'); end |
.name(opt = {}) ⇒ Object
5 6 7 8 |
# File 'lib/chinese_faker/name.rb', line 5 def name(opt = {}) opt[:with_title] ||= false parse('name.name', opt[:with_title]) end |