Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 24 lines (20 sloc) 0.62 kb
5d86c14 Initial commit
Cameron Adamez authored
1 #
2 # rb_main.rb
3 # mister t
4 #
5 # Created by Cameron Adamez on 3/18/10.
6 # Copyright __MyCompanyName__ 2010. All rights reserved.
7 #
8
9 # Loading the Cocoa framework. If you need to load more frameworks, you can
10 # do that here too.
11 framework 'Cocoa'
12
13 # Loading all the Ruby project files.
14 main = File.basename(__FILE__, File.extname(__FILE__))
15 dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
16 Dir.glob(File.join(dir_path, '*.{rb,rbo}')).map { |x| File.basename(x, File.extname(x)) }.uniq.each do |path|
17 if path != main
18 require(path)
19 end
20 end
21
22 # Starting the Cocoa main loop.
23 NSApplicationMain(0, nil)
Something went wrong with that request. Please try again.