Class: AssetFinder::Stylesheet::PathPatternCollection
- Inherits:
-
PathPatternCollection
- Object
- PathPatternCollection
- AssetFinder::Stylesheet::PathPatternCollection
- Defined in:
- lib/asset_finder/stylesheet/path_pattern_collection.rb
Constant Summary collapse
- DEFAULT_PATTERNS =
[ /^(.*)\.css\.scss$/, /^(.*)\.css$/, /^(.*)\.scss$/ ].freeze
Class Method Summary collapse
Methods inherited from PathPatternCollection
Constructor Details
This class inherits a constructor from AssetFinder::PathPatternCollection
Class Method Details
.build ⇒ Object
10 11 12 13 |
# File 'lib/asset_finder/stylesheet/path_pattern_collection.rb', line 10 def self.build patterns = AssetFinder.config.stylesheet_patterns + DEFAULT_PATTERNS new(path_patterns: patterns.map { |pattern| PathPattern.new(pattern: pattern) }) end |