Class: Faker::Shakespeare

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/shakespeare.rb

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, sample, shuffle, translate, unique, with_locale

Class Method Details

.as_you_like_itObject


25
26
27
# File 'lib/faker/shakespeare.rb', line 25

def as_you_like_it
  fetch('shakespeare.as_you_like_it')
end

.as_you_like_it_quoteObject


9
10
11
# File 'lib/faker/shakespeare.rb', line 9

def as_you_like_it_quote
  sample(as_you_like_it)
end

.hamletObject


21
22
23
# File 'lib/faker/shakespeare.rb', line 21

def hamlet
  fetch('shakespeare.hamlet')
end

.hamlet_quoteObject


5
6
7
# File 'lib/faker/shakespeare.rb', line 5

def hamlet_quote
  sample(hamlet)
end

.king_richard_iiiObject


30
31
32
# File 'lib/faker/shakespeare.rb', line 30

def king_richard_iii
  fetch('shakespeare.king_richard_iii')
end

.king_richard_iii_quoteObject


13
14
15
# File 'lib/faker/shakespeare.rb', line 13

def king_richard_iii_quote
  sample(king_richard_iii)
end

.romeo_and_julietObject


34
35
36
# File 'lib/faker/shakespeare.rb', line 34

def romeo_and_juliet
  fetch('shakespeare.romeo_and_juliet')
end

.romeo_and_juliet_quoteObject


17
18
19
# File 'lib/faker/shakespeare.rb', line 17

def romeo_and_juliet_quote
  sample(romeo_and_juliet)
end