Module: Ninjs::Helpers
- Defined in:
- lib/ninjs/helpers.rb
Class Method Summary collapse
Class Method Details
.get_filename(module_path) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/ninjs/helpers.rb', line 4 def get_filename(module_path) module_path = module_path.split(/[\\\/]/).last split = module_path.split(/[\.\-\s]/) module_filename = String.new split.each do |piece| module_filename << piece unless piece.match(/^module$|^js$/i) end module_filename end |