Class: Shakapacker::CompilerStrategy
- Inherits:
-
Object
- Object
- Shakapacker::CompilerStrategy
- Defined in:
- lib/shakapacker/compiler_strategy.rb
Class Method Summary collapse
Class Method Details
.from_config ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/shakapacker/compiler_strategy.rb', line 6 def self.from_config strategy_from_config = Shakapacker.config.compiler_strategy case strategy_from_config when "mtime" Shakapacker::MtimeStrategy.new when "digest" Shakapacker::DigestStrategy.new else raise "Unknown strategy '#{strategy_from_config}'. " \ "Available options are 'mtime' and 'digest'." end end |