Class: YMDP::Generator::Templates::JavaScript

Inherits:
Base
  • Object
show all
Defined in:
lib/view.rb

Overview

JavaScripts are located at “#BASE_PATH/app/javascripts/view.js”.

The source templates are found at “generator/templates/javascript.js”

Instance Attribute Summary

Attributes inherited from Base

#application_path, #template_path, #view

Instance Method Summary collapse

Methods inherited from Base

#append_to_file, #confirm_overwrite, #destination_path, #display_path, #generate, #initialize, #process_template, #processed_template, #source_path, #write_processed_template

Constructor Details

This class inherits a constructor from YMDP::Generator::Templates::Base

Instance Method Details

#destination_dirObject



181
182
183
# File 'lib/view.rb', line 181

def destination_dir
  "#{application_path}/javascripts"
end

#destination_filenameObject



177
178
179
# File 'lib/view.rb', line 177

def destination_filename
  "#{view}.js"
end

#source_filenameObject



173
174
175
# File 'lib/view.rb', line 173

def source_filename
  "javascript.js"  
end