Class: ASEPalette::Color::GRAY
- Inherits:
-
ASEPalette::Color
- Object
- ASEPalette::Color
- ASEPalette::Color::GRAY
- Defined in:
- lib/ase-palette/color.rb
Instance Attribute Summary collapse
-
#gray ⇒ Object
Returns the value of attribute gray.
Attributes inherited from ASEPalette::Color
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(name, gray, type = DEFAULT_COLOR_TYPE) ⇒ GRAY
constructor
A new instance of GRAY.
Methods inherited from ASEPalette::Color
Constructor Details
#initialize(name, gray, type = DEFAULT_COLOR_TYPE) ⇒ GRAY
Returns a new instance of GRAY.
79 80 81 82 83 |
# File 'lib/ase-palette/color.rb', line 79 def initialize(name, gray, type = DEFAULT_COLOR_TYPE) @name = name @gray = gray @type = type end |
Instance Attribute Details
#gray ⇒ Object
Returns the value of attribute gray.
78 79 80 |
# File 'lib/ase-palette/color.rb', line 78 def gray @gray end |
Instance Method Details
#data ⇒ Object
84 85 86 |
# File 'lib/ase-palette/color.rb', line 84 def data { gray: @gray } end |