motion-objc-runtime

motion-objc-runtime exposes the Objective-C runtime API. This allows RubyMotion access building blocks necessary to provide the metaprogramming capabilities currently lacking in RubyMotion. By exposing the ObjC runtime, define_method and other metaprogramming staples can be enabled for RubyMotion apps.

The Objective-C runtime is exposed the same way RubyMotion exposes C functions from UIKit and other iOS frameworks, via BrideSupport files created by the gen_bridge_metadata command.

Installation

Add this line to your RubyMotion app's Rakefile:

require 'motion-objc-runtime'

Usage

See Apple's Objective-C Runtime Reference

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request