Class: BlockpileGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- BlockpileGenerator
- Defined in:
- lib/generators/blockpile/blockpile_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate ⇒ Object
5 6 7 8 |
# File 'lib/generators/blockpile/blockpile_generator.rb', line 5 def generate template "blockpile.rb", "app/helpers/#{file_name}_pile.rb" copy_file "blockpile.html.erb", "app/views/shared/_#{file_name}.html.erb" end |