Class: Metro::GenerateScene

Inherits:
Generator
  • Object
show all
Defined in:
lib/commands/generate_scene.rb

Instance Method Summary collapse

Methods inherited from Generator

source_root

Instance Method Details

#create_scene_fileObject



26
27
28
# File 'lib/commands/generate_scene.rb', line 26

def create_scene_file
  template "scene.rb.tt", "scenes/#{scene_filename}.rb"
end

#create_view_fileObject



30
31
32
# File 'lib/commands/generate_scene.rb', line 30

def create_view_file
  template "view.yaml.tt", "views/#{view_filename}.yaml"
end