Class: ASEPalette::Color::GRAY

Inherits:
ASEPalette::Color show all
Defined in:
lib/ase-palette/color.rb

Instance Attribute Summary collapse

Attributes inherited from ASEPalette::Color

#name, #type

Instance Method Summary collapse

Methods inherited from ASEPalette::Color

#model, #to_h, #to_s

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

#grayObject

Returns the value of attribute gray.



78
79
80
# File 'lib/ase-palette/color.rb', line 78

def gray
  @gray
end

Instance Method Details

#dataObject



84
85
86
# File 'lib/ase-palette/color.rb', line 84

def data
  { gray: @gray }
end