Class: Slickr::Generators::Entity

Inherits:
Base
  • Object
show all
Defined in:
lib/slickr/generators/entity.rb

Instance Attribute Summary

Attributes inherited from Base

#destination, #name

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

#startObject



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