RubyMotion allows you to use all of the Cocoa SDK's library (as far as I know there are 0 limitations due to the similarities between Ruby & Objective C), for example, at runtime. You can also of course use every Objective C library you can load into it as well. The only limitations are the same as all other IDE's, namely those set forth by Apple with regard to unapproved dynamic libraries.
Anyway, functions are syntactically very, very similar to Objective-C, in it surprised me that you can do this in such a way with ruby (normally you can't
#for example the in AppDelegate class
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
#...
true
end
end
when you run rake
(equivalent to Build command in XCode), you of course do it from the console, and once your iPhone/iPad app is loaded to the simulator or your apple device, you then can control that device or simulator interactively via commands entered from the console.
Ruby Motion costs $200 bucks/year, so its not worth it just for the interactive shell feature though of course