Sha256: e108768ab8c1d61d610a8a09735ff7c97c73599f02a106a18a36031b75accf69
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
module Bowline::Generators class HelperGenerator < NamedGenerator desc <<-DESC Generates a new helper. DESC def modules [] end first_argument :name, :required => true, :desc => "helper name" template :model do |template| template.source = "model.rb" template.destination = "app/models/#{file_name}.rb" end end add :helper, HelperGenerator end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
maccman-bowline-0.1.10 | lib/bowline/generators/helper.rb |