Module: Compass::SassExtensions::Functions::FontFiles
- Included in:
- Sass::Script::Functions
- Defined in:
- lib/compass/sass_extensions/functions/font_files.rb
Instance Method Summary collapse
Instance Method Details
#font_files(*args) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/compass/sass_extensions/functions/font_files.rb', line 2 def font_files(*args) raise Sass::SyntaxError, "An even number of arguments must be passed to font_files()" unless args.size % 2 == 0 files = [] while args.size > 0 files << "#{font_url(args.shift)} format('#{args.shift}')" end Sass::Script::String.new(files.join(", ")) end |