# File lib/juicer/merger/base.rb, line 42 def save(file_or_stream) output = file_or_stream if output.is_a? String @root = Pathname.new(File.dirname(File.expand_path(output))) output = File.open(output, 'w') else @root = Pathname.new(File.expand_path(".")) end @files.each do |f| output.puts(merge(f)) end output.close if file_or_stream.is_a? String end