Class: Para::ExporterGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Para::ExporterGenerator
- Defined in:
- lib/generators/para/exporter/exporter_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_resource_exporter ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/generators/para/exporter/exporter_generator.rb', line 9 def copy_resource_exporter formats.each do |format| # Set the format to be accessible by the template to define its # class name @format = format template( "#{ base_exporter_template_name_for(format) }_exporter.rb", "app/exporters/#{ exporter_name }.rb" ) end end |