Sha256: 6729c45380fdbc70c5b24ab68adc54bfd9c73ca8f237ab39b47d19ce2996b072

Contents?: true

Size: 259 Bytes

Versions: 3

Compression:

Stored size: 259 Bytes

Contents

module MotionPrime
  module HasStyleChainBuilder
    def build_styles_chain(base_styles, suffixes)
      [*base_styles].uniq.compact.map { |base_style| [*suffixes].uniq.compact.map { |suffix| [base_style, suffix].join('_').to_sym } }.flatten
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
motion-prime-0.3.2 motion-prime/helpers/has_style_chain_builder.rb
motion-prime-0.3.1 motion-prime/helpers/has_style_chain_builder.rb
motion-prime-0.3.0 motion-prime/helpers/has_style_chain_builder.rb