Module: Compass::SassExtensions::Functions::Enumerate
- Included in:
- Sass::Script::Functions
- Defined in:
- lib/compass/sass_extensions/functions/enumerate.rb
Instance Method Summary collapse
Instance Method Details
#enumerate(prefix, from, through) ⇒ Object
2 3 4 5 |
# File 'lib/compass/sass_extensions/functions/enumerate.rb', line 2 def enumerate(prefix, from, through) selectors = (from.value..through.value).map{|i| "#{prefix.value}-#{i}"}.join(", ") Sass::Script::String.new(selectors) end |