Method: Rack::Pack::Package#initialize
- Defined in:
- lib/rack/pack/package.rb
#initialize(output_file, source_files) ⇒ Package
Returns a new instance of Package.
24 25 26 27 28 29 30 31 |
# File 'lib/rack/pack/package.rb', line 24 def initialize(output_file, source_files) @file = to_pathname(output_file) @from = if source_files.is_a?(Array) source_files.map { |file| to_pathname(file) } else source_files.to_s end end |