Class: Pakyow::Generators::Presenter Private
- Inherits:
-
Generator
- Object
- Generator
- Pakyow::Generators::Presenter
- 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
- .source_root ⇒ Object private
Instance Method Summary collapse
- #create_presenter ⇒ Object private
Class Method Details
.source_root ⇒ Object
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.("../", __FILE__) end |
Instance Method Details
#create_presenter ⇒ Object
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 |