Module: GenreGen

Defined in:
lib/genregen.rb

Overview

The primary namespace for genregen.

Constant Summary collapse

VERSION =

release version

"0.0.8".freeze
DATA =

data hash

YAML::load_file(File.join(File.dirname(__FILE__), 'data.yml'))

Class Method Summary collapse

Class Method Details

.generateString

Generates a new genre.

Examples:

GenreGen.generate # => "Soft smooth ethno-baroque"

Returns:

  • (String)

    a new genre


17
18
19
20
# File 'lib/genregen.rb', line 17

def self.generate
	template = DATA['templates'].sample
	fill_template(template).capitalize
end