Sha256: 53fd0081a4d9c9208a703d45bdf94ecb8123ed8e66f1fb2b9ab2bce0e0d00142
Contents?: true
Size: 774 Bytes
Versions: 2
Compression:
Stored size: 774 Bytes
Contents
module Facades module SassExt module Funcs ## # Compact via compass # def compact(*args) sep = :comma if args.size == 1 && args.first.is_a?(Sass::Script::List) list = args.first args = list.value sep = list.separator end Sass::Script::List.new(args.reject{|a| !a.to_bool}, sep) end ## # Joins a list with spaces or returns a single element if the # list only contains one item # def spacify(list) if list.is_a?(Sass::Script::List) Sass::Script::List.new(list.value.dup, :space) else Sass::Script::List.new([list], :space) end end end # Funcs end # SassExt end # Facades
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
facades-0.1.0 | lib/facades/sass_ext/funcs.rb |
facades-0.0.7 | lib/facades/sass_ext/funcs.rb |