Sha256: ec7dc34b1ba600787197d91add9c83d08c3772c7fe4042125f0a2c5a528f5988

Contents?: true

Size: 387 Bytes

Versions: 12

Compression:

Stored size: 387 Bytes

Contents

module Faker
  class Name < Base
    class << self
      
      def name
        fetch('name.formats').collect {|meth| self.send(meth) }.join(' ')
      end
      
      def first_name; fetch('name.first_name'); end
      def last_name;  fetch('name.last_name'); end
      def prefix;     fetch('name.prefix'); end
      def suffix;     fetch('name.suffix'); end
      
    end
  end
end

Version data entries

12 entries across 12 versions & 3 rubygems

Version Path
faker19-1.0.2 lib/faker/name.rb
faker19-1.0.1 lib/faker/name.rb
faker19-1.0.0 lib/faker/name.rb
faker-fakeme-0.10.0 lib/faker/name.rb
faker-fakeme-0.9.9 lib/faker/name.rb
faker-fakeme-0.9.8 lib/faker/name.rb
faker-fakeme-0.9.7 lib/faker/name.rb
faker-fakeme-0.9.6 lib/faker/name.rb
faker-fakeme-0.1.1 lib/faker/name.rb
faker-fakeme-0.9.5 lib/faker/name.rb
faker-0.9.5 lib/faker/name.rb
faker-0.9.4 lib/faker/name.rb