Sha256: 38879e8cd29691d471df91b034f4e8690b5ec58a5f8009df08f4e9075b7c3ef6
Contents?: true
Size: 333 Bytes
Versions: 10
Compression:
Stored size: 333 Bytes
Contents
class FormatGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def create_files template 'format_template.erb', "mods/standard/formats/#{file_name}_format.rb" template 'format_spec_template.erb', "spec/mods/standard/formats/#{file_name}_format_spec.rb" end end
Version data entries
10 entries across 10 versions & 1 rubygems