Sha256: b9fff1bb71b36238b84481707f092e748557eba25bd4e02cc048c7eb6d1d3b03
Contents?: true
Size: 582 Bytes
Versions: 1071
Compression:
Stored size: 582 Bytes
Contents
# frozen_string_literal: true module Playbook module Shadow def self.included(base) base.prop :shadow end def shadow_props selected_props = shadow_options.keys.select { |sk| try(sk) } return nil unless selected_props.present? selected_props.map do |k| shadow_value = send(k) "shadow_#{shadow_value}" if shadow_values.include? shadow_value end.compact.join(" ") end def shadow_options { shadow: "shadow", } end def shadow_values %w[none deep deeper deepest] end end end
Version data entries
1,071 entries across 1,071 versions & 1 rubygems