Sha256: 711bca787ffc2d0c910845f3fe977a92f55e3c9eecd2379c3fa5ae706380a27e
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
module MotionPrime module HasStyleChainBuilder def build_styles_chain(base_styles, suffixes) styles = [] [*base_styles].each do |base_style| [*suffixes].each do |suffix| components = [] styles << [base_style.to_s, suffix.to_s].join('_').to_sym if base_style.present? && suffix.present? end end styles end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.4.5 | motion-prime/helpers/has_style_chain_builder.rb |
motion-prime-0.4.4 | motion-prime/helpers/has_style_chain_builder.rb |