Added __call for Tag
@@ -53,7 +53,8 @@ pub fn init(lua: &Lua) -> rlua::Result<Class> {
fn method_setup<'lua>(lua: &'lua Lua, builder: ClassBuilder<'lua>) -> rlua::Result<ClassBuilder<'lua>> {
// TODO Do properly
use super::dummy;
- builder.method("connect_signal".into(), lua.create_function(dummy))
+ builder.method("connect_signal".into(), lua.create_function(dummy))?
+ .method("__call".into(), lua.create_function(|lua, _: Value| Tag::new(lua)))
}
impl_objectable!(Tag, TagState);
