AXElements/AXElements

View on GitHub
experiments/AXNotifications Troll/AXNotifications Troll/rb_main.rb

Summary

Maintainability
A
0 mins
Test Coverage
#
#  rb_main.rb
#  AXNotifications Troll
#
#  Created by Mark Rada on 11-06-05.
#  Copyright (c) 2011 Marketcircle Incorporated. 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.
main = File.basename(__FILE__, File.extname(__FILE__))
dir_path = NSBundle.mainBundle.resourcePath.fileSystemRepresentation
Dir.glob(File.join(dir_path, '*.{rb,rbo}')).map { |x| File.basename(x, File.extname(x)) }.uniq.each do |path|
  if path != main
    require(path)
  end
end

# Starting the Cocoa main loop.
NSApplicationMain(0, nil)