Sha256: 2964d707eda1dea50a6a66c08234f82a4838b6822b9c86173352e31c39ad4204

Contents?: true

Size: 237 Bytes

Versions: 20

Compression:

Stored size: 237 Bytes

Contents

class MotionPrime::ScreenGenerator < MotionPrime::Generator
  def generate(name)
    @name = name.downcase
    @class_name = "#{name.camelize}Screen"
    @title = name.titleize
    template 'screen.rb', "app/screens/#{name}.rb"
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
motion-prime-1.0.7 generators/screen_generator.rb
motion-prime-1.0.6 generators/screen_generator.rb
motion-prime-1.0.5 generators/screen_generator.rb
motion-prime-1.0.4 generators/screen_generator.rb
motion-prime-1.0.3 generators/screen_generator.rb
motion-prime-1.0.2 generators/screen_generator.rb
motion-prime-1.0.1 generators/screen_generator.rb
motion-prime-1.0.0 generators/screen_generator.rb
motion-prime-0.9.9.2 generators/screen_generator.rb
motion-prime-0.9.9.1 generators/screen_generator.rb
motion-prime-0.9.9 generators/screen_generator.rb
motion-prime-0.9.8 generators/screen_generator.rb
motion-prime-0.9.7 generators/screen_generator.rb
motion-prime-0.9.6 generators/screen_generator.rb
motion-prime-0.9.5 generators/screen_generator.rb
motion-prime-0.9.4 generators/screen_generator.rb
motion-prime-0.9.3 generators/screen_generator.rb
motion-prime-0.9.2 generators/screen_generator.rb
motion-prime-0.9.1 generators/screen_generator.rb
motion-prime-0.9.0 generators/screen_generator.rb