enum Opal::PaletteFormat

Overview

Common color palette file and serialization formats

Defined in:

opal/style/palette_formats.cr

Enum Members

GPL = 0
PAL = 1
HEX = 2
JSON = 3
CSS = 4

Class Method Summary

Instance Method Summary

Class Method Detail

def self.parse?(str : String | Symbol) : PaletteFormat | Nil #

[View source]

Instance Method Detail

def css? #

Returns true if this enum value equals CSS


[View source]
def extension : String #

[View source]
def gpl? #

Returns true if this enum value equals GPL


[View source]
def hex? #

Returns true if this enum value equals HEX


[View source]
def json? #

Returns true if this enum value equals JSON


[View source]
def pal? #

Returns true if this enum value equals PAL


[View source]
def to_s(io : IO) : Nil #
Description copied from struct Enum

Appends a String representation of this enum member to the given io.

See also: #to_s.


[View source]