Sha256: 98d4402c10a21e87d58fcdf1713930617fc2b2e63cfeb6fe2164f92321cc4f4f
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true require "json" require "gdal/color_entry" module GDAL module ColorEntryMixins module Extensions # @param include_fourth [Boolean] Turn off in case you don't want the fourth # color in the array. # @return [Array] def to_a(include_fourth: true) if include_fourth [color1, color2, color3, color4] else [color1, color2, color3] end end end end end GDAL::ColorEntry.include(GDAL::ColorEntryMixins::Extensions)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.1.0 | lib/gdal/extensions/color_entry/extensions.rb |
ffi-gdal-1.0.4 | lib/gdal/extensions/color_entry/extensions.rb |
ffi-gdal-1.0.3 | lib/gdal/extensions/color_entry/extensions.rb |