lib/masscan/output_file.rb
#
# Parses the contents of the output file.
#
# @yield [record]
#   If a block is given, it will be passed each parsed record.
#
# @yield [Status, Banner] record
#   A parsed record, either a {Status} or a {Banner}.
#
# @return [Enumerator]
#   If no block is given, an Enumerator will be returned.
#
Parses the contents of the output file.
Parses the contents of the output file .
def each(&block)
      return enum_for(__method__) unless block
      @parser.open(@path) do |file|
        @parser.parse(file,&block)
      end
    end
def each ( & block ) return enum_for ( __method__ ) unless block @parser . open ( @path ) do | file | @parser . parse ( file , & block ) end end
Parses the contents of the output file.
Parses the contents of the output file .
If no block is given, an Enumerator will be returned.
If no block is given an Enumerator will be returned .
Enumerator
block
<not_specific>
]
<not_specific>
record A parsed record, either a {Status} or a {Banner}.
record A parsed record either a { Status } or a { Banner } .