Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 22 lines (19 sloc) 570 Bytes
#
# rb_main.rb
# ChrUpd
#
# Created by Julien Blanchard on 04/12/09.
# Copyright MIKROS IMAGE 2009. All rights reserved.
#
# Loading the Cocoa framework. If you need to load more frameworks, you can
# do that here too.
framework 'Cocoa'
# Loading all the Ruby project files.
dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
Dir.glob(dir_path + '/*.{rb,rbo}').map { |x| File.basename(x, File.extname(x)) }.uniq.each do |path|
if path != File.basename(__FILE__)
require(path)
end
end
# Starting the Cocoa main loop.
NSApplicationMain(0, nil)