Class: Rack::Bundle::JSBundle

Inherits:
Base
  • Object
show all
Defined in:
lib/rack/bundle/bundles/js.rb

Instance Attribute Summary

Attributes inherited from Base

#files

Instance Method Summary collapse

Methods inherited from Base

#==, #extension, #hash, #initialize, #joiner, #mime_type, new_from_contents, #path

Constructor Details

This class inherits a constructor from Rack::Bundle::Base

Instance Method Details

#contentsObject



6
7
8
# File 'lib/rack/bundle/bundles/js.rb', line 6

def contents
  @contents ||= @files.map { |file| file.contents }.join(joiner)
end