Module: Coyote::Bundles

Defined in:
lib/coyote/bundles.rb,
lib/coyote/bundles/css.rb,
lib/coyote/bundles/base.rb,
lib/coyote/bundles/javascript.rb

Defined Under Namespace

Classes: Base, CSS, JavaScript

Class Method Summary collapse

Class Method Details

.choose(path) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/coyote/bundles.rb', line 14

def self.choose(path)
  case File.extname(path)
  when /\.js/i      ; JavaScript.new(path)
  when /\.css/i     ; CSS.new(path)
  else              ; Base.new(path)
  end
end