Class: Movement::Commands::Generate
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Movement::Commands::Generate
- Includes:
- Thor::Actions
- Defined in:
- lib/movement/commands/generate.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
10 11 12 |
# File 'lib/movement/commands/generate.rb', line 10 def self.source_root File.dirname(__FILE__) end |
Instance Method Details
#generate ⇒ Object
14 15 16 17 18 |
# File 'lib/movement/commands/generate.rb', line 14 def generate if generator == "view" template("templates/UIView.tt", "#{[:destination_root]}/views/#{name}.rb") end end |