module Henshin

  # Compresses a set of files into one big ol' ugly file.
  #
  # @example
  #
  #   compressed = Compressor.new(files)
  #   compressed.compress #=> "..."
  #
  class Compressor

    # @param files [Array<File>]
    def initialize(files=[])
      @files = files
    end

    def join
      @files.map {|f| f.text }.join("\n")
    end

    # @return [String] The text of the given files joined together.
    def compress
      join
    end
  end

end

module Henshin

  # Compresses a set of files into one big ol' ugly file.
  #
  # @example
  #
  #   compressed = Compressor.new(files)
  #   compressed.compress #=> "..."
  #
  class Compressor

    # @param files [Array<File>]
    def initialize(files=[])
      @files = files
    end

    def join
      @files.map {|file| file.text }.join("\n")
    end

    # @return [String] The text of the given files joined together.
    def compress
      join
    end
  end

end

Rename f to file, use descriptive names
Rename f to file, use descriptive names
