Method: ModJS::Blueprint#write_autoload
- Defined in:
- lib/modjs-architecture.rb
#write_autoload(file) ⇒ Object
119 120 121 122 123 124 125 126 127 |
# File 'lib/modjs-architecture.rb', line 119 def write_autoload(file) if @config[:autoload] @config[:autoload].each do |autoload| file << "/*---------- ModJS autoload #{autoload} ----------*/\n" file << "//= require #{autoload}\n\n" if autoload.match(/^\<.+\>$/) file << "//= require \"#{autoload}\"\n\n" if autoload.match(/^[^\<].+|[^\>]$/) end end end |