enum

Opal::PaletteFormat

Inherits Enum < Comparable < Value < Object

Common color palette file and serialization formats

Constants

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

Class methods

parse?(str : String | Symbol) : PaletteFormat | Nil
Source

Instance methods

css?

Returns true if this enum value equals CSS

Source
extension
Source
gpl?

Returns true if this enum value equals GPL

Source
hex?

Returns true if this enum value equals HEX

Source
json?

Returns true if this enum value equals JSON

Source
pal?

Returns true if this enum value equals PAL

Source
to_s(io : IO) : Nil

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

See also: to_s.

Source