X-Git-Url: http://nitlanguage.org diff --git a/contrib/objcwrapper/src/objc_model.nit b/contrib/objcwrapper/src/objc_model.nit index 21a34fa..e5c5702 100644 --- a/contrib/objcwrapper/src/objc_model.nit +++ b/contrib/objcwrapper/src/objc_model.nit @@ -77,7 +77,7 @@ class ObjcMethod var return_type: String is noinit, writable # Does this method look like a constructor/method? - fun is_init: Bool do return params.first.name.has_prefix("init") + fun is_init: Bool do return params.first.name.has_prefix("init") and not is_class_property end # Attribute of an `ObjcClass` @@ -119,4 +119,10 @@ class ObjcParam # Is this a parameter with only a `name`? var is_single = false is writable + + redef fun to_s + do + if is_single then return name + return "{name}:({return_type}){variable_name}" + end end