Class: JBundle::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/jbundle/builder.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Builder

Returns a new instance of Builder.



92
93
94
95
# File 'lib/jbundle/builder.rb', line 92

def initialize(config)
  @config = config
  @sources = []
end

Instance Method Details

#build!Object



97
98
99
100
101
# File 'lib/jbundle/builder.rb', line 97

def build!
  @sources = @config.bundles_and_files.map do |b|
    build_one b
  end
end

#build_one(f) ⇒ Object



103
104
105
# File 'lib/jbundle/builder.rb', line 103

def build_one(f)
  Compiler.new(f.name, f, @config)
end