We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fbbe13 commit b5c3124Copy full SHA for b5c3124
isc/py/init/Test.cls
@@ -44,5 +44,18 @@ ClassMethod InitAllargs() As %Status [ CodeMode = expression ]
44
" print(""kwarg: {0} = {1}"".format(key, value))")
45
}
46
47
+ClassMethod InitPerson() As %Status [ CodeMode = expression ]
48
+{
49
+##class(isc.py.Main).SimpleString( "class Person(object):" _ $c(10) _
50
+ " def __init__(self, name, age, city):" _ $c(10) _
51
+ " self.name = name" _ $c(10) _
52
+ " self.age = age" _ $c(10) _
53
+ " self.city = city" _ $c(10) _
54
+ " def getAge(self):" _ $c(10) _
55
+ " return self.age" _ $c(10) _
56
+ " def getAgePlus(self, add):" _ $c(10) _
57
+ " return self.age + add")
58
+}
59
+
60
61
0 commit comments