Sha256: 6f43f74c397cfd2c9d6952552ecd549052783aa7184b481522ce80b5a37b6fd6
Contents?: true
Size: 353 Bytes
Versions: 22
Compression:
Stored size: 353 Bytes
Contents
module Sinatra module CometIO def self.javascript(*js_file_names) js_file_names = ['cometio.js', 'event_emitter.js'] if js_file_names.empty? js = '' js_file_names.each do |i| File.open(File.expand_path "../js/#{i}", File.dirname(__FILE__)) do |f| js += f.read end end js end end end
Version data entries
22 entries across 22 versions & 1 rubygems