lib/name_gen/generator.rb in name_gen-0.2.1 vs lib/name_gen/generator.rb in name_gen-0.3.0
- old
+ new
@@ -1,17 +1,20 @@
module NameGen
class Generator
def initialize
@markov_generator = NameGen::MarkovGenerator.new
@rand_generator = NameGen::RandGenerator.new
+ @rus_generator = NameGen::RusGenerator::Generator.new
end
def get_name(syllables)
case NameGen::configuration.type
when :markov
@markov_generator.get_name(syllables)
when :rand
@rand_generator.get_name(syllables)
+ when :rus
+ @rus_generator.get_name(syllables)
end
end
end
end