Method: ModJS::Blueprint#get_file_name
- Defined in:
- lib/modjs-architecture.rb
#get_file_name(module_path) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/modjs-architecture.rb', line 39 def get_file_name(module_path) module_file = module_path.split(/[\\\/]/).last module_filename = module_file.gsub(/\.module\.js$/, '') if module_file.match /\.module\.js$/ module_filename = module_file.gsub(/\.js$/, '') end |