Class: Juicer::Merger::JavaScriptMerger

Inherits:
Base
  • Object
show all
Defined in:
lib/juicer/merger/javascript_merger.rb

Overview

Merge several files into one single output file. Resolves and adds in files from @depend comments

Instance Attribute Summary

Attributes inherited from Base

#dependency_resolver, #files

Instance Method Summary collapse

Methods inherited from Base

#append, #save

Methods included from Chainable

included, #next_in_chain, #next_in_chain=

Constructor Details

#initialize(files = [], options = {}) ⇒ JavaScriptMerger

Constructor



11
12
13
14
# File 'lib/juicer/merger/javascript_merger.rb', line 11

def initialize(files = [], options = {})
  @dependency_resolver = JavaScriptDependencyResolver.new(options)
  super(files, options)
end