Class: Slickr::Generators::Entity
- Defined in:
- lib/slickr/generators/entity.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#copy_file, #empty_directory, #initialize, #template
Constructor Details
This class inherits a constructor from Slickr::Generators::Base
Instance Method Details
#start ⇒ Object
4 5 6 7 |
# File 'lib/slickr/generators/entity.rb', line 4 def start template "entity.erb", "lib/entities/#{name}.rb" Renderer.new(name.gsub("entity", "renderer")).start end |