Sutto / 88miles

Simple OSX client for 88miles built with MacRuby

This URL has Read+Write access

88miles / rb_main.rb
100755 12 lines (8 sloc) 0.243 kb
1
2
3
4
5
6
7
8
9
10
11
12
framework 'Cocoa'
 
dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
 
Dir.entries(dir_path).each do |path|
  if path != File.basename(__FILE__) and path[-3..-1] == '.rb'
    require path
  end
end
 
NSApplicationMain(0, nil)