File tree 1 file changed +13
-9
lines changed
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -38,32 +38,36 @@ def readpartial(integer, outbuf = nil)
38
38
end
39
39
end
40
40
41
- STDERR = $stderr = IO . new
42
- STDIN = $stdin = IO . new
43
- STDOUT = $stdout = IO . new
41
+ STDERR = $stderr = IO . new
42
+ STDIN = $stdin = IO . new
43
+ STDOUT = $stdout = IO . new
44
44
45
45
def $stdout. puts ( *strs )
46
46
%x{
47
47
for (var i = 0; i < strs.length; i++) {
48
- if(strs[i] instanceof Array) {
49
- #{ puts ( *`strs[i]` ) }
50
- } else {
48
+ if (strs[i] instanceof Array) {
49
+ #{ puts ( *`strs[i]` ) } ;
50
+ }
51
+ else {
51
52
console.log(#{ `strs[i]` . to_s } );
52
53
}
53
54
}
54
55
}
56
+
55
57
nil
56
58
end
57
59
58
60
def $stderr. puts ( *strs )
59
61
%x{
60
62
for (var i = 0; i < strs.length; i++) {
61
- if(strs[i] instanceof Array) {
62
- #{ puts ( *`strs[i]` ) }
63
- } else {
63
+ if (strs[i] instanceof Array) {
64
+ #{ puts ( *`strs[i]` ) } ;
65
+ }
66
+ else {
64
67
console.warn(#{ `strs[i]` . to_s } );
65
68
}
66
69
}
67
70
}
71
+
68
72
nil
69
73
end
You can’t perform that action at this time.
0 commit comments