Class: Faker::Verb

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/verb.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.baseString

Produces the base form of a random verb.

Examples:

Faker::Verb.base #=> "hurt"

Returns:

  • (String)

Available since:

  • 1.9.0


15
16
17
# File 'lib/faker/default/verb.rb', line 15

def base
  fetch('verbs.base')
end

.ing_formString

Produces a random verb in the .ing form.

Examples:

Faker::Verb.ing_form #=> "causing"

Returns:

  • (String)

Available since:

  • 1.9.0


67
68
69
# File 'lib/faker/default/verb.rb', line 67

def ing_form
  fetch('verbs.ing_form')
end

.pastString

Produces a random verb in past tense.

Examples:

Faker::Verb.past #=> "completed"

Returns:

  • (String)

Available since:

  • 1.9.0


28
29
30
# File 'lib/faker/default/verb.rb', line 28

def past
  fetch('verbs.past')
end

.past_participleString

Produces a random verb in past participle.

Examples:

Faker::Verb.past_participle #=> "digested"

Returns:

  • (String)

Available since:

  • 1.9.0


41
42
43
# File 'lib/faker/default/verb.rb', line 41

def past_participle
  fetch('verbs.past_participle')
end

.simple_presentString

Produces a random verb in simple present.

Examples:

Faker::Verb.simple_present #=> "climbs"

Returns:

  • (String)

Available since:

  • 1.9.0


54
55
56
# File 'lib/faker/default/verb.rb', line 54

def simple_present
  fetch('verbs.simple_present')
end