Class: ThronesFaker
- Inherits:
-
Object
- Object
- ThronesFaker
- 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
.city ⇒ Object
12 13 14 |
# File 'lib/thrones_faker.rb', line 12 def self.city cities.sample end |
.name ⇒ Object
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 |