Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (20 sloc) 0.478 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#
# rb_main.rb
# Gmail Notifr
#
# Created by james on 10/3/08.
# Copyright (c) 2008 ashchan.com. All rights reserved.
#

require 'osx/cocoa'

def rb_main_init
  path = OSX::NSBundle.mainBundle.resourcePath.fileSystemRepresentation
  rbfiles = Dir.entries(path).select {|x| /\.rb\z/ =~ x}
  rbfiles -= [ File.basename(__FILE__) ]
  rbfiles.each do |path|
    require( File.basename(path) )
  end
end

if $0 == __FILE__ then
  rb_main_init
  OSX.NSApplicationMain(0, nil)
end
Something went wrong with that request. Please try again.