Method: LanguageServer::Protocol::Interface::Color#red

Defined in:
lib/language_server/protocol/interface/color.rb

#rednumber

The red component of this color in the range [0-1].

Returns:

  • (number)


23
24
25
# File 'lib/language_server/protocol/interface/color.rb', line 23

def red
  attributes.fetch(:red)
end