This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'ruboto' | |
| java_import "android.opengl.GLSurfaceView" | |
| java_import "javax.microedition.khronos.egl.EGL10" | |
| java_import "javax.microedition.khronos.egl.EGLConfig" | |
| java_import "javax.microedition.khronos.opengles.GL10" | |
| java_import "java.nio.ByteBuffer" | |
| java_import "java.nio.ByteOrder" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.scottmoyer.test; | |
| import org.jruby.Ruby; | |
| import org.jruby.javasupport.util.RuntimeHelpers; | |
| import org.jruby.runtime.builtin.IRubyObject; | |
| import org.jruby.javasupport.JavaUtil; | |
| import org.jruby.exceptions.RaiseException; | |
| import org.ruboto.Script; | |
| public class MyDateSetListener implements android.app.DatePickerDialog.OnDateSetListener { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %############################################################################################## | |
| %# | |
| %# This code takes the @callbacks hash (read out of the interfaces.yml file) and prepares | |
| %# it for use in the code below. | |
| %# | |
| % implements = [] | |
| % constants = [] | |
| % @callbacks.each do |interface,i_info| | |
| % i_info.each do |method,v| | |
| % v["interface"] = interface.gsub("$", ".") |
NewerOlder