Module: Cryptozoologist

Defined in:
lib/cryptozoologist.rb,
lib/cryptozoologist/errors.rb,
lib/cryptozoologist/version.rb,
lib/cryptozoologist/generator.rb,
lib/cryptozoologist/dictionary.rb,
lib/cryptozoologist/dictionaries.rb,
lib/cryptozoologist/configuration.rb,
lib/cryptozoologist/dictionaries/filler.rb,
lib/cryptozoologist/dictionaries/states.rb,
lib/cryptozoologist/dictionaries/clothing.rb,
lib/cryptozoologist/dictionaries/quantity.rb,
lib/cryptozoologist/dictionaries/addresses.rb,
lib/cryptozoologist/dictionaries/punctuation.rb,
lib/cryptozoologist/dictionaries/cities/words.rb,
lib/cryptozoologist/dictionaries/colors/paint.rb,
lib/cryptozoologist/dictionaries/animals/common.rb,
lib/cryptozoologist/dictionaries/colors/web_safe.rb,
lib/cryptozoologist/dictionaries/animals/mythical.rb,
lib/cryptozoologist/dictionaries/people/last_name.rb,
lib/cryptozoologist/dictionaries/people/first_name.rb,
lib/cryptozoologist/dictionaries/cities/teminologies.rb

Defined Under Namespace

Modules: Addresses, Cities, Dictionaries, Dictionary, Errors, Generator Classes: Configuration

Constant Summary collapse

VERSION =
"3.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



14
15
16
# File 'lib/cryptozoologist.rb', line 14

def configuration
  @configuration
end

Class Method Details

.cityObject



50
51
52
# File 'lib/cryptozoologist.rb', line 50

def self.city
  Generator.city
end

.configure {|configuration| ... } ⇒ Object

Yields:



25
26
27
28
# File 'lib/cryptozoologist.rb', line 25

def self.configure
  self.reset
  yield(configuration)
end

.full_nameObject



54
55
56
# File 'lib/cryptozoologist.rb', line 54

def self.full_name
  Generator.full_name
end

.generateObject



38
39
40
# File 'lib/cryptozoologist.rb', line 38

def self.generate
  Generator.random
end

.lorem(sentence_count = 1) ⇒ Object



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

def self.lorem(sentence_count=1)
  Generator.lorem(sentence_count)
end

.randomObject



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

def self.random
  Generator.random
end

.resetObject



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

def self.reset
  @configuration = Configuration.new
end

.state(desired_state = nil, desired_library = nil, desired_replace_index = nil) ⇒ Object



46
47
48
# File 'lib/cryptozoologist.rb', line 46

def self.state(desired_state=nil, desired_library=nil, desired_replace_index=nil)
  Generator.state(desired_state, desired_library, desired_replace_index)
end

.street_addressObject



42
43
44
# File 'lib/cryptozoologist.rb', line 42

def self.street_address
  Generator.street_address
end