forked from brombres/Rogue
-
Notifications
You must be signed in to change notification settings - Fork 2
METHODS
AbePralle edited this page May 3, 2015
·
1 revision
method method_name
# A "nil method" with no parameters and no return value.
# Empty parens "()" are optional.
method method_name( param1, param2:ParamType [, ...] )->ReturnType
# 'param1' is an "auto-store" parameter that automatically stores the
# parameter in the property of the same name.
method method_name(...)->this
# Specifies that the return type is the name as the method's type context
# (the enclosing class this method is defined in). Implies that the
# return value is this object ('this'). Useful for indicating
# that a method returns its context object for call chaining.