Permalink
Browse files

Updated to 0.10.1.dev

  • Loading branch information...
1 parent 89241a5 commit b3ec81978e4ed869d59d3d40f9f1a823a2b2fde2 @rscottm rscottm committed Dec 8, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/org/ruboto/ScriptInfo.java
@@ -5,6 +5,19 @@
private String scriptName;
private Object rubyInstance;
+ public void setFromIntent(android.content.Intent intent) {
+ android.os.Bundle configBundle = intent.getBundleExtra("Ruboto Config");
+
+ if (configBundle != null) {
+ if (configBundle.containsKey("ClassName")) {
+ setRubyClassName(configBundle.getString("ClassName"));
+ }
+ if (configBundle.containsKey("Script")) {
+ setScriptName(configBundle.getString("Script"));
+ }
+ }
+ }
+
public String getRubyClassName() {
if (rubyClassName == null && scriptName != null) {
return Script.toCamelCase(scriptName);

0 comments on commit b3ec819

Please sign in to comment.