Wiki
Version 1 (modified by gauthier, 16 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