SwitchByKind:
Filter:
crucial-library/Classes (extension) | Libraries > crucial > utils

SwitchByKind
ExtensionExtension

a switch statement that matches by class

Description

This can efficiently replace a common and ugly series of if statements.

Class Methods

.new

Arguments:

... pairs

Instance Methods

.init

Arguments:

pairs

.value

Arguments:

object
... args