Class: Pakyow::Generators::Presenter Private

Inherits:
Generator
  • Object
show all
Defined in:
lib/pakyow/generators/presenter/presenter_generator.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



9
10
11
# File 'lib/pakyow/generators/presenter/presenter_generator.rb', line 9

def self.source_root
  File.expand_path("../", __FILE__)
end

Instance Method Details

#create_presenterObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/pakyow/generators/presenter/presenter_generator.rb', line 17

def create_presenter
  template("templates/presenter.rb.tt", File.join(app.config.src, "presenters/#{name}_presenter.rb"))
end