Changes between Version 17 and Version 18 of MixIn
- Timestamp:
- 01/29/14 11:01:52 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MixIn
v17 v18 48 48 # The behaviour desired - a name property 49 49 mixin Named 50 var _name as String? 51 pro name as String 52 get 53 return _name ? '' 54 set 55 _name = value 50 51 pro name from var = '' 56 52 57 53 get capName 58 return _name[:1].toUpper + _name[1:] 59 60 54 return .name.capitalized 55 61 56 # the (otherwise empty) class with mixin added 62 57 class A adds Named