Myst::Match
Inherits Myst::Node / Reference / Object
A match expression. Match expressions are a syntax sugar representing an anonymous function definition and immediate invocation with the arguments.
A match expression must be given at least one argument and one clause to be considered valid.
'match' [ argument [ ',' argument ]* ] [ '->' '(' [ param [ ',' param ]* ]? ')' [ '{' | 'do' ] body [ '}' | 'end' ] ]+ 'end'
Constructors
Instance methods
==(other : self)
Returns true if this reference is the same as other. Invokes same?.
accept_children(visitor)
Sourcearguments
Sourcearguments=(arguments : Array(Node))
Sourceclauses
Sourceclauses=(clauses : Array(Block))
Sourcehash(hasher)
See Object#hash(hasher)