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, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.as_you_like_itObject



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

def as_you_like_it
  fetch('shakespeare.as_you_like_it')
end

.as_you_like_it_quoteObject



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

def as_you_like_it_quote
  sample(as_you_like_it)
end

.hamletObject



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

def hamlet
  fetch('shakespeare.hamlet')
end

.hamlet_quoteObject



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

def hamlet_quote
  sample(hamlet)
end

.king_richard_iiiObject



28
29
30
# File 'lib/faker/shakespeare.rb', line 28

def king_richard_iii
  fetch('shakespeare.king_richard_iii')
end

.king_richard_iii_quoteObject



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

def king_richard_iii_quote
  sample(king_richard_iii)
end

.romeo_and_julietObject



32
33
34
# File 'lib/faker/shakespeare.rb', line 32

def romeo_and_juliet
  fetch('shakespeare.romeo_and_juliet')
end

.romeo_and_juliet_quoteObject



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

def romeo_and_juliet_quote
  sample(romeo_and_juliet)
end