Wiki

Changes between Version 17 and Version 18 of MixIn

Show
Ignore:
Timestamp:
01/29/14 11:01:52 (11 years ago)
Author:
Charles
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MixIn

    v17 v18  
    4848# The behaviour desired - a name property 
    4949mixin 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 = '' 
    5652 
    5753    get capName 
    58         return _name[:1].toUpper + _name[1:] 
    59          
    60          
     54        return .name.capitalized 
     55 
    6156# the (otherwise empty) class with mixin added 
    6257class A adds Named