Sha256: 110de60290786f361113d89ca7a01736aed4cbe222e21b985c78f934b3d045ff

Contents?: true

Size: 389 Bytes

Versions: 1

Compression:

Stored size: 389 Bytes

Contents

module NameGen
  class Generator
    def initialize
      @markov_generator = NameGen::MarkovGenerator.new
      @rand_generator = NameGen::RandGenerator.new
    end

    def get_name(syllables)
      case NameGen::configuration.type
      when :markov
        @markov_generator.get_name(syllables)
      when :rand
        @rand_generator.get_name(syllables)
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
name_gen-0.2.1 lib/name_gen/generator.rb