Method: SheetsV4::Color.method_missing

Defined in:
lib/sheets_v4/color.rb

.method_missing(method_name, *arguments) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Return a color object for the given name from SheetsV4.color_names or call super

Parameters:

  • the name of the color

  • ignored

Returns:

  • the color object

API:

  • private



28
29
30
# File 'lib/sheets_v4/color.rb', line 28

def method_missing(method_name, *arguments, &)
  COLORS[method_name.to_sym] || super
end