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 <Foundation/NSProxy.h> 11#import <RubyCocoa/osx_ruby.h> 12 13@interface RBObject : NSProxy 14{ 15 VALUE m_rbobj; 16 BOOL m_rbobj_retained; 17 BOOL m_rbobj_retain_release_track; 18 id oc_master; 19} 20 21+ RBObjectWithRubyScriptCString: (const char*) cstr; 22+ RBObjectWithRubyScriptString: (NSString*) str; 23 24- initWithRubyObject: (VALUE) rbobj; 25- initWithRubyScriptCString: (const char*) cstr; 26- initWithRubyScriptString: (NSString*) str; 27 28- (VALUE) __rbobj__; 29- (BOOL) isKindOfClass:(Class)aClass; 30- (BOOL) isRBObject; 31 32@end 33 34@interface NSProxy (RubyCocoaEx) 35 36- (BOOL) isRBObject; 37 38@end 39