Sha256: 619a3685601b2994bc48cdeb9424b596ce4a00e7a1715534f7fe6d8f5eca664f
Contents?: true
Size: 780 Bytes
Versions: 41
Compression:
Stored size: 780 Bytes
Contents
# frozen_string_literal: true module DrawioDsl module Schema # Default Palette contains palette information that can be inherited at each level class DefaultPalette attr_accessor :fill_color attr_accessor :stroke_color attr_accessor :font_color attr_accessor :gradient def initialize(owner, **args, &block) @fill_color = args[:fill_color] @stroke_color = args[:stroke_color] @font_color = args[:font_color] @gradient = args[:gradient] instance_exec(owner, &block) if block_given? end def to_h { fill_color: fill_color, stroke_color: stroke_color, font_color: font_color, gradient: gradient } end end end end
Version data entries
41 entries across 41 versions & 1 rubygems