Repository navigation
Expand file tree
/
Copy pathverb.rb
More file actions
72 lines (67 loc) · 1.38 KB
/
Copy pathverb.rb
File metadata and controls
72 lines (67 loc) · 1.38 KB
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
62
63
64
65
66
67
68
69
70
71
72
# frozen_string_literal: true
module Faker
class Verb < Base
class << self
##
# Produces the base form of a random verb.
#
# @return [String]
#
# @example
# Faker::Verb.base #=> "hurt"
#
# @faker.version 1.9.0
def base
fetch('verbs.base')
end
##
# Produces a random verb in past tense.
#
# @return [String]
#
# @example
# Faker::Verb.past #=> "completed"
#
# @faker.version 1.9.0
def past
fetch('verbs.past')
end
##
# Produces a random verb in past participle.
#
# @return [String]
#
# @example
# Faker::Verb.past_participle #=> "digested"
#
# @faker.version 1.9.0
def past_participle
fetch('verbs.past_participle')
end
##
# Produces a random verb in simple present.
#
# @return [String]
#
# @example
# Faker::Verb.simple_present #=> "climbs"
#
# @faker.version 1.9.0
def simple_present
fetch('verbs.simple_present')
end
##
# Produces a random verb in the .ing form.
#
# @return [String]
#
# @example
# Faker::Verb.ing_form #=> "causing"
#
# @faker.version 1.9.0
def ing_form
fetch('verbs.ing_form')
end
end
end
end