From ef5bbbc4ac7c528386338a73c7aa0a8ba1913ced Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 6 Jan 2015 12:21:06 -0500 Subject: [PATCH] contrib/jwrapper: rename `NitModule::value` to `name` MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/jwrapper/src/types.nit | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/jwrapper/src/types.nit b/contrib/jwrapper/src/types.nit index c977e64..6260ba9 100644 --- a/contrib/jwrapper/src/types.nit +++ b/contrib/jwrapper/src/types.nit @@ -318,12 +318,12 @@ class JavaMethod var params: Array[JavaType] end +# A Nit module, use to import the referenced extern classes class NitModule - var value: String - - init(str: String) do value = str + # Name of the module + var name: String redef fun ==(other): Bool do return self.to_s == other.to_s - redef fun to_s: String do return self.value - redef fun hash: Int do return self.value.hash + redef fun to_s: String do return self.name + redef fun hash: Int do return self.name.hash end -- 1.7.9.5