class Riveter::Generators::PresenterGenerator
Public Instance Methods
create_module_file()
click to toggle source
# File lib/generators/riveter/presenter/presenter_generator.rb, line 12 def create_module_file return if regular_class_path.empty? template 'module.rb', File.join('app/presenters', "#{class_path.join('/')}.rb") if behavior == :invoke end
create_presenter_file()
click to toggle source
# File lib/generators/riveter/presenter/presenter_generator.rb, line 8 def create_presenter_file template 'presenter.rb', File.join('app/presenters', class_path, "#{file_name}_presenter.rb") end