vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/zone_reader.rb
#  Iterate over each line in a IO object, and process it.
#  Returns a list of RRs if successful, nil otherwise.
Iterate over each line in a IO object, and process it.
Returns a list of RRs if successful, nil otherwise.
Iterate over each line in a IO object and process it . Returns a list of RRs if successful nil otherwise .
def process_io(io)
      zone = nil
      io.each do |line|
        begin
          ret = process_line(line)
          if (ret)
            rr = RR.create(ret)
            if (!zone)
              zone = []
            end
            zone.push(rr)
          end
        rescue Exception => e
          raise ParseException.new("Error reading line #{io.lineno} of #{io.inspect} : [#{line}]")
        end
      end
      return zone
    end
def process_io ( io ) zone = nil io . each do | line | begin ret = process_line ( line ) if ( ret ) rr = RR . create ( ret ) if ( ! zone ) zone = [ ] end zone . push ( rr ) end rescue Exception => e raise ParseException . new ( "Error reading line #{io.lineno} of #{io.inspect} : [#{line}]" ) end end return zone end
Iterate over each line in a IO object, and process it.
Iterate over each line in a IO object and process it .
io
<not_specific>