Class: Graphite::Importer
- Inherits:
-
Sass::Importers::Filesystem
- Object
- Sass::Importers::Filesystem
- Graphite::Importer
- Defined in:
- lib/graphite/importer.rb
Constant Summary collapse
- FONT_EXTENSIONS =
[ "eot", "woff2", "woff", "otf", "ttf", "svg" ]
- FONT_WEIGHTS =
[ "100", "200", "300", "400", "500", "600", "700", "800", "900" ]
- FONT_STYLES =
[ "normal", "italic", "oblique" ]
Instance Method Summary collapse
Instance Method Details
#find(name, options) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/graphite/importer.rb', line 34 def find(name, ) if [:css_filename] if name.include? "?styles=" find_fonts(name, [:css_filename], ) else super(name, ) end else nil end end |
#key(name, options) ⇒ Object
46 47 48 |
# File 'lib/graphite/importer.rb', line 46 def key(name, ) ["Graphite:" + File.dirname(File.(name)), File.basename(name)] end |
#to_s ⇒ Object
50 51 52 |
# File 'lib/graphite/importer.rb', line 50 def to_s "Graphite::Importer" end |