1
0
ソースを参照

Add Smalltalk>>version

Nicolas Petton 11 年 前
コミット
fd12bc5aef
3 ファイル変更33 行追加0 行削除
  1. 11 0
      js/Kernel-Objects.deploy.js
  2. 16 0
      js/Kernel-Objects.js
  3. 6 0
      st/Kernel-Objects.st

+ 11 - 0
js/Kernel-Objects.deploy.js

@@ -3250,6 +3250,17 @@ return self}, function($ctx1) {$ctx1.fill(self,"reservedWords",{}, smalltalk.Sma
 messageSends: []}),
 smalltalk.Smalltalk);
 
+smalltalk.addMethod(
+"_version",
+smalltalk.method({
+selector: "version",
+fn: function (){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
return "0.10";
+}, function($ctx1) {$ctx1.fill(self,"version",{}, smalltalk.Smalltalk)})},
+messageSends: []}),
+smalltalk.Smalltalk);
+
 
 smalltalk.Smalltalk.klass.iVarNames = ['current'];
 smalltalk.addMethod(

+ 16 - 0
js/Kernel-Objects.js

@@ -4474,6 +4474,22 @@ referencedClasses: []
 }),
 smalltalk.Smalltalk);
 
+smalltalk.addMethod(
+"_version",
+smalltalk.method({
+selector: "version",
+category: 'accessing',
+fn: function (){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
return "0.10";
+}, function($ctx1) {$ctx1.fill(self,"version",{}, smalltalk.Smalltalk)})},
+args: [],
+source: "version\x0a\x09\x22Answer the version string of Amber\x22\x0a    \x0a    ^ '0.10'",
+messageSends: [],
+referencedClasses: []
+}),
+smalltalk.Smalltalk);
+
 
 smalltalk.Smalltalk.klass.iVarNames = ['current'];
 smalltalk.addMethod(

+ 6 - 0
st/Kernel-Objects.st

@@ -1458,6 +1458,12 @@ readJSObject: anObject
 reservedWords
 	"JavaScript reserved words"
 	<return self.reservedWords>
+!
+
+version
+	"Answer the version string of Amber"
+    
+    ^ '0.10'
 ! !
 
 !Smalltalk methodsFor: 'classes'!