Module: NameGen
- Defined in:
- lib/name_gen.rb,
lib/name_gen/config.rb,
lib/name_gen/version.rb,
lib/name_gen/generator.rb,
lib/name_gen/rand_generator.rb,
lib/name_gen/markov_generator.rb
Defined Under Namespace
Classes: Config, Generator, MarkovGenerator, RandGenerator
Constant Summary collapse
- VERSION =
'0.3.0'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
- .get_name(elements = 3) ⇒ Object
- .init(type = :markov) ⇒ Object
Class Attribute Details
.configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/name_gen.rb', line 13 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
24 25 26 |
# File 'lib/name_gen.rb', line 24 def configure yield(configuration) end |
.get_name(elements = 3) ⇒ Object
20 21 22 |
# File 'lib/name_gen.rb', line 20 def get_name(elements = 3) @generator.get_name(elements) end |