Sha256: 2c3d40ea2c662cdcf0fb18587faf71a45d95c3fa6a7955438915f0b3d87567a6
Contents?: true
Size: 552 Bytes
Versions: 17
Compression:
Stored size: 552 Bytes
Contents
module Bowline::Generators class WindowGenerator < NamedGenerator desc <<-DESC Generates a new window. DESC def modules [] end def class_name "#{self.name.camel_case}Window" end def file_name "#{name}_window" end first_argument :name, :required => true, :desc => "window name" template :helper do |template| template.source = "window.rb" template.destination = "app/windows/#{file_name}.rb" end end add :window, WindowGenerator end
Version data entries
17 entries across 17 versions & 1 rubygems