Sha256: f4d14c2e9337e68d0c5b564ae2456eb37c6c597df0aec4df10274edf6e80583d

Contents?: true

Size: 200 Bytes

Versions: 4

Compression:

Stored size: 200 Bytes

Contents

class SongGenerator < Sprout::Generator::Base

  add_param :favorite, String, { :default => 'Emerge' }

  def manifest
    template "#{favorite.gsub(' ', '').snake_case}.txt", 'Song.txt'
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sprout-1.0.3.pre test/fixtures/generators/song_generator.rb
sprout-1.0.2.pre test/fixtures/generators/song_generator.rb
sprout-1.0.1.pre test/fixtures/generators/song_generator.rb
sprout-1.0.0.pre test/fixtures/generators/song_generator.rb