Mercurial Hosting > luan
comparison core/src/luan/modules/IoLuan.java @ 610:b4f3dbe1c6e3
add Rpc and change Hosting to use Rpc
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 11 Dec 2015 00:13:13 -0700 |
parents | f050c30952c0 |
children | 8bd98da6991a |
comparison
equal
deleted
inserted
replaced
609:24b05963ba62 | 610:b4f3dbe1c6e3 |
---|---|
204 } | 204 } |
205 | 205 |
206 public LuanTable table() { | 206 public LuanTable table() { |
207 LuanTable tbl = new LuanTable(); | 207 LuanTable tbl = new LuanTable(); |
208 try { | 208 try { |
209 tbl.rawPut( "java", this ); | |
209 tbl.rawPut( "to_string", new LuanJavaFunction( | 210 tbl.rawPut( "to_string", new LuanJavaFunction( |
210 LuanIn.class.getMethod( "to_string" ), this | 211 LuanIn.class.getMethod( "to_string" ), this |
211 ) ); | 212 ) ); |
212 tbl.rawPut( "read_text", new LuanJavaFunction( | 213 tbl.rawPut( "read_text", new LuanJavaFunction( |
213 LuanIn.class.getMethod( "read_text" ), this | 214 LuanIn.class.getMethod( "read_text" ), this |