Myst::AnonymousFunction
Inherits Myst::Node / Reference / Object
A shorthand function definition with multiple clauses. AnonymousFunctions
are most commonly used to define complex behavior in place of a block
parameter for a function. Clauses are defined using a "stab" (->),
followed by a parenthesized parameter list, then a clause body wrapped like
a normal block (either with {...} or do...end).
An anonymous function must be given at least one clause to be valid.
'fn' [ '->' '(' [ param [ ',' param ]* ]? ')' [ '{' | 'do' ] body [ '}' | 'end' ] ]+ 'end'
Constructors
Instance methods
Returns true if this reference is the same as other. Invokes same?.
See Object#hash(hasher)
internal_name is used as the name of the function for use in stack
traces and other reporting mechanisms. This should not be used for any
other public functionality.