Version 2 (modified by todd.a, 14 years ago) |
---|
How do I set modifier on a member?
you suffix member declaration with 'is' and the modifier
class HasAMember def doSomething is protected pass
How do I set multiple modifier on a member?
you suffix member declaration with 'is' and a comma delimited list of modifier
class OverridesAMember def doSomething is protected, override pass