Class: Repres::Dosser::PlatformGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Repres::Dosser::PlatformGenerator
- Defined in:
- lib/generators/repres/dosser/platform/platform_generator.rb
Overview
rails generate repres:dosser:platform administration –version 2
Instance Method Summary collapse
Instance Method Details
#produce ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/generators/repres/dosser/platform/platform_generator.rb', line 10 def produce @platform_name = file_name.downcase @version_number = ['version'].to_i generate_controller generate_route end |