class Faker::Games::HalfLife

Public Class Methods

character() click to toggle source

Produces the name of a character from the Half-Life games.

@return [String]

@example

Faker::Games::HalfLife.character #=> "Gordon Freeman"

@faker.version 1.9.2

# File lib/faker/games/half_life.rb, line 16
def character
  fetch('games.half_life.character')
end
enemy() click to toggle source

Produces the name of an enemy from the Half-Life games.

@return [String]

@example

Faker::Games::HalfLife.enemy #=> "Headcrab"

@faker.version 1.9.2

# File lib/faker/games/half_life.rb, line 29
def enemy
  fetch('games.half_life.enemy')
end
location() click to toggle source

Produces the name of a location from the Half-Life games.

@return [String]

@example

Faker::Games::HalfLife.location #=> "Black Mesa Research Facility"

@faker.version 1.9.2

# File lib/faker/games/half_life.rb, line 42
def location
  fetch('games.half_life.location')
end