Sha256: 779e77f6ade52a9afb910eb2a0c1bc0a9f679f639408b4ea32f1aaff3fecfd97
Contents?: true
Size: 470 Bytes
Versions: 129
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true module Playbook module PbLegend class Legend < Playbook::KitBase prop :color, type: Playbook::Props::Enum, values: (1..7).map { |n| "data_#{n}" }, default: "data_1" prop :prefix_text prop :text, required: true def body_color dark ? "lighter" : "light" end def classname generate_classname("pb_legend_kit", color) end end end end
Version data entries
129 entries across 129 versions & 1 rubygems