Coder Social home page Coder Social logo

huymd2004 / mrubyiosexample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from carsonmcdonald/mrubyiosexample

0.0 2.0 0.0 51.52 MB

Example of using MRuby embedded in iOS to call Objective C from Ruby and Ruby from Objective C

License: MIT License

mrubyiosexample's Introduction

About

This is a complete example of using mruby embedded in an iOS app. You should be able to clone this repo and open it using XCode 4 then build and run. It has examples of calling Ruby code from Objective-C and Objective-C code from Ruby.

Notes/Details

This example includes a framework called MRuby.framework that was created using the build script found in the ios ruby embedded repo. To modify the Ruby included in this example you will need to have the mruby compiler that can be obtained by building the ios-ruby-embedded project or by building the mruby project.

Files of note:

  • example.rb - This is the Ruby code for the example and has to be compiled into example.mrb before changes will take place.
  • example.mrb - This is the compiled version of example.rb.
  • FooData.h/m - This is an example data class that is wrapped using a Ruby class named FooData.
  • FooUtil.h/m - This is where all the interaction with mruby happens. It coordinates different parts of the examples as well.

License

MIT to match the mruby license. See the LICENSE file for full license.

mrubyiosexample's People

Contributors

carsonmcdonald avatar

Watchers

James Cloos avatar Noname avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.