You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: position_and_channels.rb
    path of file: ./repos/truffleruby/bench/psd.rb/psd.rb/lib/psd/layer
    
    the code of the file until where you have to start completion: class PSD
  class Layer
    module PositionAndChannels
      attr_reader :top, :left, :bottom, :right, :cols, :rows
      attr_reader :channels, :channels_info

      alias :width :cols
      alias :height :rows

      private

      def parse_position_and_channels
        start_section(:info)

        @top = @file.read_int
        @left = @file.read_int
     
    
      def parse_position_and_channels
        start_section(:info)

        @top = @file.read_int
        @left = @file.read_int
        @bottom = @file.read_int
        @right = @file.read_int
        @channels = @file.read_short

        @rows = @bottom - @top
        @cols = @right - @left

        @channels.times do
          channel_id = @file.read_short
          channel_length = @file.read_int

          @channels_info << {id: channel_id, length: channel_length}
        end

        end_section(:info)
      end