Sha256: bc4d4c41a77a637e4c17a5d14654b5deb09c80a2d99eb02956dd2a8fbf3010f1
Contents?: true
Size: 780 Bytes
Versions: 6
Compression:
Stored size: 780 Bytes
Contents
require "flok/version" module Flok module MergeSource #Merge all the kernel javascript files into one string def self.merge_kernel Dir.chdir(File.dirname(__FILE__)) do Dir.chdir("./js/kernel/") do js_files = Dir["*.js"] out = "" js_files.each do |js| out << File.read(js) out << "\n" end return out end end end def self.merge_user_app js_files = Dir["./app/*.js"] out = "" js_files.each do |js| out << File.read(js) out << "\n" end return out end def self.merge_all str_kernel = self.merge_kernel str_user = self.merge_user_app return str_kernel + "\n" + str_user end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
flok-0.0.10 | lib/flok.rb |
flok-0.0.9 | lib/flok.rb |
flok-0.0.8 | lib/flok.rb |
flok-0.0.7 | lib/flok.rb |
flok-0.0.6 | lib/flok.rb |
flok-0.0.4 | lib/flok.rb |