Sha256: ea4e72fa71110d8915a0bef8321ec2b1c481039f079c1cffd564c8ce87dbc067
Contents?: true
Size: 664 Bytes
Versions: 18
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true module Playbook module JustifySelf def self.included(base) base.prop :justify_self end def justify_self_props selected_props = justify_self_options.keys.select { |sk| try(sk) } return nil unless selected_props.present? selected_props.map do |k| justify_self_value = send(k) "justify_self_#{justify_self_value}" if justify_self_values.include? justify_self_value end.compact.join(" ") end def justify_self_options { justify_self: "justify_self", } end def justify_self_values %w[auto start end center stretch] end end end
Version data entries
18 entries across 18 versions & 1 rubygems