File: fallout.rb

package info (click to toggle)
ruby-faker 3.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,360 kB
  • sloc: ruby: 20,654; makefile: 6; sh: 6
file content (62 lines) | stat: -rw-r--r-- 1,433 bytes parent folder | download | duplicates (2)
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
# frozen_string_literal: true

module Faker
  class Games
    class Fallout < Base
      class << self
        ##
        # Produces the name of a character from the Fallout games.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::Fallout.character #=> "Liberty Prime"
        #
        # @faker.version 1.9.2
        def character
          fetch('games.fallout.characters')
        end

        ##
        # Produces the name of a faction from the Fallout games.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::Fallout.faction #=> "Brotherhood of Steel"
        #
        # @faker.version 1.9.2
        def faction
          fetch('games.fallout.factions')
        end

        ##
        # Produces the name of a location from the Fallout games.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::Fallout.location #=> "New Vegas"
        #
        # @faker.version 1.9.2
        def location
          fetch('games.fallout.locations')
        end

        ##
        # Produces a quote from the Fallout games.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::Fallout.quote
        #     #=> "Democracy is non-negotiable"
        #
        # @faker.version 1.9.2
        def quote
          fetch('games.fallout.quotes')
        end
      end
    end
  end
end