Sha256: 1f4de10ba1eea846cc7c60178017073ef9e7c19c0de3fbb1ceaf24e74fc96a56
Contents?: true
Size: 628 Bytes
Versions: 30
Compression:
Stored size: 628 Bytes
Contents
module Merb::Generators class HelperGenerator < NamespacedGenerator def self.source_root File.join(super, 'component', 'helper') end desc <<-DESC Generates a new helper. DESC option :testing_framework, :desc => 'Testing framework to use (one of: rspec, test_unit)' first_argument :name, :required => true, :desc => "helper name" template :helper do |template| template.source = 'app/helpers/%file_name%_helper.rb' template.destination = "app/helpers" / base_path / "#{file_name}_helper.rb" end end add :helper, HelperGenerator end
Version data entries
30 entries across 30 versions & 1 rubygems