Module: GDAL::ColorEntryMixins::Extensions
- Included in:
- GDAL::ColorEntry
- Defined in:
- lib/gdal/extensions/color_entry/extensions.rb
Instance Method Summary collapse
Instance Method Details
#to_a(include_fourth: true) ⇒ Array
12 13 14 15 16 17 18 |
# File 'lib/gdal/extensions/color_entry/extensions.rb', line 12 def to_a(include_fourth: true) if include_fourth [color1, color2, color3, color4] else [color1, color2, color3] end end |