Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created April 24, 2010 18:55
Show Gist options
  • Save mrchrisadams/377848 to your computer and use it in GitHub Desktop.
Save mrchrisadams/377848 to your computer and use it in GitHub Desktop.
#! usr/local/bin/macruby
# this script spits out a list of classes that are available to you when you've loaded in the following frameworks
# I used it to poke around a bit, and find out what classes I'd need to use to create for cocoa authentication
require 'fileutils'
framework 'Cocoa'
framework 'Security'
framework 'SecurityInterface'
mr_classes = []
ObjectSpace.each_object(Class) {|x| mr_classes << x }
File.open('macruby_classes_list.txt', 'w') do |file|
mr_classes.each {|klass| file.puts("#{klass}\n")}
macruby-0.5 ?> end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment