Class: ThronesFaker

Inherits:
Object
  • Object
show all
Defined in:
lib/thrones_faker.rb,
lib/thrones_faker/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.cityObject



12
13
14
# File 'lib/thrones_faker.rb', line 12

def self.city
	cities.sample
end

.nameObject



8
9
10
# File 'lib/thrones_faker.rb', line 8

def self.name
	names.sample
end

.words(number) ⇒ Object



16
17
18
# File 'lib/thrones_faker.rb', line 16

def self.words(number)
	dothrak.sample(number).join(' ').downcase.capitalize
end