Class: PoemGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- PoemGenerator
- Defined in:
- lib/generators/lorin_production_ready/poem_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
5 6 7 |
# File 'lib/generators/lorin_production_ready/poem_generator.rb', line 5 def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#poem ⇒ Object
9 10 11 12 |
# File 'lib/generators/lorin_production_ready/poem_generator.rb', line 9 def poem template "poetry/raven.txt" template "app/assets/javascripts/whatever.js" end |
#poem2 ⇒ Object
13 14 15 16 |
# File 'lib/generators/lorin_production_ready/poem_generator.rb', line 13 def poem2 template "poetry/raven.txt" template "app/assets/javascripts/whatever.js" end |