Module Spreadsheet::Datatypes
In: lib/spreadsheet/datatypes.rb

This module defines convenience-methods for the definition of Spreadsheet attributes (boolean, colors and enumerations)

Methods

Constants

COLORS = [ :builtin_black, :builtin_white, :builtin_red, :builtin_green, :builtin_blue, :builtin_yellow, :builtin_magenta, :builtin_cyan, :text, :border, :pattern_bg, :dialog_bg, :chart_text, :chart_bg, :chart_border, :tooltip_bg, :tooltip_text, :aqua, :black, :blue, :cyan, :brown, :fuchsia, :gray, :grey, :green, :lime, :magenta, :navy, :orange, :purple, :red, :silver, :white, :yellow ]   Valid colors for color attributes.

Public Class methods

Define instance methods to read and write boolean attributes.

Define instance methods to read and write color attributes. For valid colors see COLORS

Define instance methods to read and write enumeration attributes.

  • The first argument designates the attribute name.
  • The second argument designates the default value.
  • All subsequent attributes are possible values.
  • If the last attribute is a Hash, each value in the Hash designates aliases for the corresponding key.

[Validate]