1/* 2 * Copyright (c) 2006-2008, The RubyCocoa Project. 3 * Copyright (c) 2001-2006, FUJIMOTO Hisakuni. 4 * All Rights Reserved. 5 * 6 * RubyCocoa is free software, covered under either the Ruby's license or the 7 * LGPL. See the COPYRIGHT file for more information. 8 */ 9 10#import <objc/objc.h> 11#import <Foundation/NSObject.h> 12#import "osx_ruby.h" 13 14Class RBObjcClassFromRubyClass (VALUE kls); 15VALUE RBRubyClassFromObjcClass (Class cls); 16 17Class RBObjcClassNew(VALUE kls, const char* name, Class super_class); 18Class RBObjcDerivedClassNew(VALUE kls, const char* name, Class super_class); 19 20BOOL is_objc_derived_class(VALUE kls); 21 22Class objc_class_alloc(const char* name, Class super_class); 23 24@interface NSObject(RBOverrideMixin) 25- __slave__; 26- (VALUE) __rbobj__; 27+ addRubyMethod: (SEL)a_sel; 28+ addRubyMethod: (SEL)a_sel withType:(const char *)typefmt; 29@end 30