Class: Sass::Rails::Importer

Inherits:
Object
  • Object
show all
Defined in:
lib/sass_rails_patch.rb

Instance Method Summary collapse

Instance Method Details

#sass_file?(filename) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'lib/sass_rails_patch.rb', line 4

def sass_file? filename
  filename = filename.to_s
  SASS_EXTENSIONS.keys.any?{|ext| filename.match /#{ext}$/}
end