Sha256: 81ea8a032801d2791d0e93c97f770e4351874cfe0d79f696a4b4e3eb4ae9550d
Contents?: true
Size: 319 Bytes
Versions: 70
Compression:
Stored size: 319 Bytes
Contents
module Compass::SassExtensions::Functions::Enumerate def enumerate(prefix, from, through, separator = nil) separator ||= Sass::Script::String.new("-", :string) selectors = (from.value..through.value).map{|i| "#{prefix.value}#{separator.value}#{i}"}.join(", ") Sass::Script::String.new(selectors) end end
Version data entries
70 entries across 69 versions & 5 rubygems