class LanguageServer::Protocol::Interface::Color
Represents a color in RGBA space.
def alpha
-
(number)
-
def alpha attributes.fetch(:alpha) end
def blue
-
(number)
-
def blue attributes.fetch(:blue) end
def green
-
(number)
-
def green attributes.fetch(:green) end
def initialize(red:, green:, blue:, alpha:)
def initialize(red:, green:, blue:, alpha:) @attributes = {} @attributes[:red] = red @attributes[:green] = green @attributes[:blue] = blue @attributes[:alpha] = alpha @attributes.freeze end
def red
-
(number)
-
def red attributes.fetch(:red) end
def to_hash
def to_hash attributes end
def to_json(*args)
def to_json(*args) to_hash.to_json(*args) end