Permalink
Browse files

Fixed bug of Object.to_s()

git-svn-id: http://hotruby.googlecode.com/svn/trunk@34 4fb8041d-b042-0410-9571-f50be27af959
  • Loading branch information...
1 parent 6db571e commit fc596a5cc67500a9476e6a226576f3f0aa2ff32e yukoba@accelart.jp committed Jan 27, 2008
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/RubyNative.js
  2. +2 −2 web/js/HotRuby.js
View
@@ -7,9 +7,9 @@ HotRuby.prototype.classes = {
"to_s" : function(recver) {
if(typeof(recver) == "number")
- return recver.toString();
+ return this.createRubyString(recver.toString());
else
- return recver.__native.toString();
+ return this.createRubyString(recver.__native.toString());
},
"puts" : function(recver, args, sf) {
View
@@ -1117,9 +1117,9 @@ HotRuby.prototype.classes = {
"to_s" : function(recver) {
if(typeof(recver) == "number")
- return recver.toString();
+ return this.createRubyString(recver.toString());
else
- return recver.__native.toString();
+ return this.createRubyString(recver.__native.toString());
},
"puts" : function(recver, args, sf) {

0 comments on commit fc596a5

Please sign in to comment.