Sha256: 745bff34db84d7579d92a27b1a1304b99eef0ebc415d2df54249fe34136b97ff
Contents?: true
Size: 1.01 KB
Versions: 38
Compression:
Stored size: 1.01 KB
Contents
# frozen_string_literal: true module Faker class Creature class Cat < Base flexible :cat class << self ## # Produces a random name for a cat # # @return [String] # # @example # Faker::Creature::Cat.name #=> "Felix" # # @faker.version 1.9.2 def name fetch('creature.cat.name') end ## # Produces a random cat breed # # @return [String] # # @example # Faker::Creature::Cat.breed #=> "Scottish Fold" # # @faker.version 1.9.2 def breed fetch('creature.cat.breed') end ## # Produces a random cat breed registry # # @return [String] # # @example # Faker::Creature::Cat.registry #=> "Fancy Southern Africa Cat Council" # # @faker.version 1.9.2 def registry fetch('creature.cat.registry') end end end end end
Version data entries
38 entries across 38 versions & 2 rubygems