Permalink
Browse files

Support $native

git-svn-id: http://hotruby.googlecode.com/svn/trunk@16 4fb8041d-b042-0410-9571-f50be27af959
  • Loading branch information...
1 parent 34b8a0a commit d0a12f473a24a079599b1d13d95277e6bdacde47 yukoba@accelart.jp committed Jan 14, 2008
@@ -1,6 +1,6 @@
HowToDebug 2008/01/14 17:54
-Build with buildHotRubyDebug.bat
-Run C:\Program Files\flex2_sdk_hf1\bin\fdb.exe
+buildFlashDebug.bat test.as
+%FLEX_HOME%\bin\fdb.exe
Enter "run file:///C:/Documents/my/2007/HotRuby/ActionScript/HotRubyFlash.swf"
Enter "continue"
@@ -1,5 +1,4 @@
@echo off
set "PATH=%FLEX_HOME%\bin;%PATH%"
-copy /b ..\src\ASHeader.as + test.as + ..\src\RubyVM.js + ..\src\RubyNative.js + ..\src\ASNative.js HotRubyFlash.as
+copy /b "%~p0\..\src\ASHeader.as" + %1 + "%~p0\..\src\RubyVM.js" + "%~p0\..\src\RubyNative.js" HotRubyFlash.as
mxmlc --strict=false --warnings=false -default-size 600 400 -default-frame-rate=30 -default-background-color=0xFFFFFF HotRubyFlash.as
-pause
@@ -1,5 +1,4 @@
@echo off
set "PATH=%FLEX_HOME%\bin;%PATH%"
-copy /b ..\src\ASHeader.as + test.as + ..\src\RubyVM.js + ..\src\RubyNative.js + ..\src\ASNative.js HotRubyFlash.as
+copy /b "%~p0\..\src\ASHeader.as" + %1 + "%~p0\..\src\RubyVM.js" + "%~p0\..\src\RubyNative.js" HotRubyFlash.as
mxmlc -debug=true --strict=false --warnings=false -default-size 600 400 -default-frame-rate=30 -default-background-color=0xFFFFFF HotRubyFlash.as
-pause
View
@@ -1,15 +0,0 @@
-// The license of this source is "Ruby License"
-(function() {
-
-var asNativeClasses = {
- "ASEnviornment" : {
- },
- "ASObject" : {
- }
-};
-for(var className in asNativeClasses) {
- HotRuby.prototype.classes[className] = asNativeClasses[className];
-}
-
-})();
-
View
@@ -83,7 +83,19 @@ HotRuby.prototype.classes = {
"NilClass" : {
},
+ "NativeEnviornment" : {
+ },
+ "NativeObject" : {
+ },
+ "NativeClass" : {
+ },
+
"Proc" : {
+ "initialize" : function(recver, args) {
+ recver.__opcode = args[0].__opcode;
+ recver.__parentStackFrame = args[0].__parentStackFrame;
+ },
+
"yield" : function(recver, args, sf) {
this.runOpcode(
recver.__opcode,
@@ -155,7 +167,7 @@ HotRuby.prototype.classes = {
},
"to_s" : function(recver) {
- return recver.toString();
+ return this.createRubyString(recver.toString());
}
},
Oops, something went wrong.

0 comments on commit d0a12f4

Please sign in to comment.