enum Mtg::Card::Color

Defined in:

mtg/card/colors.cr

Enum Members

White = 0
Blue = 1
Black = 2
Red = 3
Green = 4
Colorless = 5

Constructors

Instance Method Summary

Constructor Detail

def self.parse(color : String) : Color #

[View source]

Instance Method Detail

def black? #

[View source]
def blue? #

[View source]
def colorless? #

[View source]
def green? #

[View source]
def red? #

[View source]
def to_char #

[View source]
def white? #

[View source]