Sha256: 50d403f4bc0c6236ba44292367c6c1276046f326f132360a86fdf5711c26c75d
Contents?: true
Size: 392 Bytes
Versions: 3
Compression:
Stored size: 392 Bytes
Contents
module Marilyn class PresenterGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc "New presenter" argument :presenter_name, :type => :string def new_presenter_file empty_directory 'app/presenters' template 'presenter.rb', "app/presenters/#{presenter_name.singularize}_presenter.rb" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
marilyne-1.1.0 | lib/generators/marilyne/presenter_generator.rb |
marilyne-1.0.1 | lib/generators/marilyne/presenter_generator.rb |
marilyne-1.0.0 | lib/generators/marilyn/presenter_generator.rb |