enum

Velvet::Cast

Inherits Enum < Comparable < Value < Object

Cast target types

Constants

String = 0
Int = 1
Float = 2
Bool = 3

Instance methods

bool?

Returns true if this enum value equals Bool

Source
float?

Returns true if this enum value equals Float

Source
int?

Returns true if this enum value equals Int

Source
string?

Returns true if this enum value equals String

Source