Sha256: 65dda7f67599be93b5415d52af8a3ea54d970acfd8573a04d95a95abafde19f1
Contents?: true
Size: 888 Bytes
Versions: 2
Compression:
Stored size: 888 Bytes
Contents
# coding: us-ascii require 'forgery' Forgery.load_from!(File.dirname(__FILE__) + '/..') class Forgery::JaName < Forgery def self.full_name full_name_with_kana.split('@').last end def self.full_name_with_kana fn, fnk = first_name_with_kana.split('@') ln, lnk = last_name_with_kana.split('@') "#{ln} #{fn}@#{lnk} #{fnk}" end def self.last_name last_name_with_kana.split('@').first end def self.last_name_with_kana dictionaries[:ja_last_names].random end def self.first_name first_name_with_kana.split('@').first end def self.first_name_with_kana [dictionaries[:ja_male_first_names], dictionaries[:ja_female_first_names]].random.random end def self.male_first_name_with_kana dictionaries[:ja_male_first_names].random end def self.female_first_name_with_kana dictionaries[:ja_female_first_names].random end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gyomu_ruby-0.0.2 | lib/gyomu_ruby/forgery/forgeries/ja_name.rb |
gyomu_ruby-0.0.1 | lib/gyomu_ruby/forgery/forgeries/ja_name.rb |