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

Version Path
bowline-0.9.4 lib/bowline/generators/window.rb
bowline-0.9.3 lib/bowline/generators/window.rb
bowline-0.9.2 lib/bowline/generators/window.rb
bowline-0.9.1 lib/bowline/generators/window.rb
bowline-0.6.3 lib/bowline/generators/window.rb
bowline-0.6.2 lib/bowline/generators/window.rb
bowline-0.6.1 lib/bowline/generators/window.rb
bowline-0.6.0 lib/bowline/generators/window.rb
bowline-0.5.8 lib/bowline/generators/window.rb
bowline-0.5.7 lib/bowline/generators/window.rb
bowline-0.5.6 lib/bowline/generators/window.rb
bowline-0.5.5 lib/bowline/generators/window.rb
bowline-0.5.4 lib/bowline/generators/window.rb
bowline-0.5.3 lib/bowline/generators/window.rb
bowline-0.5.2 lib/bowline/generators/window.rb
bowline-0.5.1 lib/bowline/generators/window.rb
bowline-0.5.0 lib/bowline/generators/window.rb