Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
mtg
v0.1.1
Mtg
Card
Availability
BorderColor
Color
Condition
DuelDeck
FrameEffects
Layout
Location
PromoTypes
Rarity
Side
Supertypes
Deck
Format
Type
ForeignData
Language
Keywords
Set
Type
Built with Crystal 1.9.2
2023-10-08 08:59:33 UTC
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
.from_s
(value : String) : Color
.new
(color : String) : Color
Instance Method Summary
#black?
#blue?
#colorless?
#green?
#red?
#to_char
#white?
Constructor Detail
def self.
from_s
(value : String) :
Color
#
[
View source
]
def self.
new
(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
]