Lax / objc2rubymotion

Convert Objective-C code to RubyMotion

Home Page:https://bensheldon.github.io/objc2rubymotion/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

objc2rubymotion

Objective-C to Rubymotion Converter: Use it at https://bensheldon.github.io/objc2rubymotion/

Based on the Sublime-ObjcToRubyMotion plugin. Inspiration to the Atom-Objc2Rubymotion plugin.

Implementation

Coffeescript mostly; statically built with Jekyll. Currently performs the following conversions:

  • removes semicolons at end of lines
  • replaces NSString with ruby strings
  • converts square bracketed [method message] calls to method.message calls, and reformats their arguments
  • removes autorelease declarations
  • removes removes type declarations

View the list of tests for a full list of conversions that are performed.

Development

Install it locally.

$ bundle install

Run it:

$ bundle exec jekyll serve

Visit it: http://localhost:4000/objc2rubymotion

About

Convert Objective-C code to RubyMotion

https://bensheldon.github.io/objc2rubymotion/

License:MIT License


Languages

Language:CoffeeScript 50.5%Language:CSS 21.3%Language:HTML 20.1%Language:SCSS 5.9%Language:JavaScript 1.3%Language:Ruby 0.8%