comparison core/src/luan/modules/StringLuan.java @ 196:be0275bda373

minor git-svn-id: https://luan-java.googlecode.com/svn/trunk@197 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Thu, 03 Jul 2014 18:03:53 +0000
parents 24ede40ee0aa
children 4c96cb73dd93
comparison
equal deleted inserted replaced
195:24ede40ee0aa 196:be0275bda373
16 public final class StringLuan { 16 public final class StringLuan {
17 17
18 public static final LuanFunction LOADER = new LuanFunction() { 18 public static final LuanFunction LOADER = new LuanFunction() {
19 @Override public Object call(LuanState luan,Object[] args) { 19 @Override public Object call(LuanState luan,Object[] args) {
20 LuanTable module = new LuanTable(); 20 LuanTable module = new LuanTable();
21 module.metatableGetter = new MyMetatableGetter(module); 21 module.put( MetatableGetter.KEY, new MyMetatableGetter(module) );
22 try { 22 try {
23 add( module, "to_binary", String.class ); 23 add( module, "to_binary", String.class );
24 add( module, "to_integers", String.class ); 24 add( module, "to_integers", String.class );
25 add( module, "from_integers", new int[0].getClass() ); 25 add( module, "from_integers", new int[0].getClass() );
26 add( module, "find", String.class, String.class, Integer.class, Boolean.class ); 26 add( module, "find", String.class, String.class, Integer.class, Boolean.class );