Changes between Version 16 and Version 17 of MixIn
- Timestamp:
- 01/29/14 11:00:28 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MixIn
v16 v17 55 55 _name = value 56 56 57 get capName57 get capName 58 58 return _name[:1].toUpper + _name[1:] 59 59 … … 63 63 pass 64 64 65 def main is shared 66 a = A() 67 assert a inherits Named 68 assert a.name == '' 69 a.name = 'arosebyanyothername' 70 assert a.name == 'arosebyanyothername' 71 assert a.capName == 'Arosebyanyothername' 65 class B adds Named 66 pass 67 68 class P 69 def main is shared 70 a = A() 71 assert a inherits Named 72 assert a.name == '' 73 a.name = 'arosebyanyothername' 74 assert a.name == 'arosebyanyothername' 75 assert a.capName == 'Arosebyanyothername' 72 76 }}} 73 77