Class: AssetFinder::Stylesheet::PathPatternCollection

Inherits:
PathPatternCollection show all
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

#initialize, #match, #match?

Constructor Details

This class inherits a constructor from AssetFinder::PathPatternCollection

Class Method Details

.buildObject



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