[MacRuby] #1081: API function for loading RBO files from Objective-C environment
#1081: API function for loading RBO files from Objective-C environment ------------------------------------------+--------------------------------- Reporter: justin@… | Owner: lsansonetti@… Type: enhancement | Status: new Priority: minor | Milestone: MacRuby 0.8 Component: MacRuby | Keywords: api rbo ------------------------------------------+--------------------------------- Currently there is no direct method for loading an RBO file from Objective-C. It can be done using an approach like this: MacRuby sharedRuntime] evaluateString:[NSString stringWithFormat:@"require '%@'", filename]]; But a more direct method would be nice. Either allowing evaluateFileAtPath to accept an RBO file or creating a new function. -- Ticket URL: <http://www.macruby.org/trac/ticket/1081> MacRuby <http://macruby.org/>
#1081: API function for loading RBO files from Objective-C environment ------------------------------------------+--------------------------------- Reporter: justin@… | Owner: lsansonetti@… Type: enhancement | Status: closed Priority: minor | Milestone: MacRuby 0.9 Component: MacRuby | Resolution: fixed Keywords: api rbo | ------------------------------------------+--------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 0.8 => MacRuby 0.9 Comment: Should be fixed in r5124. evaluateFileAtPath: will now behave like #require, so it will work with .rbo and .bundle files too. However, the return value of evaluateFileAtPath: will not be the value of the last expression evaluated anymore. -- Ticket URL: <http://www.macruby.org/trac/ticket/1081#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby