-
Notifications
You must be signed in to change notification settings - Fork 212
/
de.ex
61 lines (54 loc) · 1.04 KB
/
de.ex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
defmodule Faker.Color.De do
import Faker, only: [sampler: 2]
@moduledoc """
Functions for color data in German
"""
@doc """
Returns a random German color name
## Examples
iex> Faker.Color.De.name()
"Rot"
iex> Faker.Color.De.name()
"Grün"
iex> Faker.Color.De.name()
"Braun"
iex> Faker.Color.De.name()
"Rosa"
"""
@spec name() :: String.t()
sampler(:name, [
"Rot",
"Grün",
"Schwarz",
"Blau",
"Rosa",
"Braun",
"Orange",
"Gelb",
"Lila",
"Weiß"
])
@doc """
Returns a random english fancy color name
## Examples
iex> Faker.Color.De.fancy_name()
"Flieder"
iex> Faker.Color.De.fancy_name()
"Feldgrau"
iex> Faker.Color.De.fancy_name()
"Gelbgrün"
iex> Faker.Color.De.fancy_name()
"Rotbraun"
"""
@spec fancy_name() :: String.t()
sampler(:fancy_name, [
"Flieder",
"Feldgrau",
"Gelbgrün",
"Kuchiba",
"Rotbraun",
"Tannengrün",
"Weinrot",
"Zementgrau"
])
end