class Faker::Games::HalfLife
Public Class Methods
Source
# File lib/faker/games/half_life.rb, line 16 def character fetch('games.half_life.character') end
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
Source
# File lib/faker/games/half_life.rb, line 29 def enemy fetch('games.half_life.enemy') end
Produces the name of an enemy from the Half-Life games.
@return [String]
@example
Faker::Games::HalfLife.enemy #=> "Headcrab"
@faker.version 1.9.2
Source
# File lib/faker/games/half_life.rb, line 42 def location fetch('games.half_life.location') end
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