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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request