class Threatinator::Parser

Public Class Methods

new(opts = {}) click to toggle source

@param [Hash] opts An options hash. See subclasses for details.

# File lib/threatinator/parser.rb, line 4
def initialize(opts = {})
end

Public Instance Methods

==(other) click to toggle source
# File lib/threatinator/parser.rb, line 13
def ==(other)
  true
end
eql?(other) click to toggle source
# File lib/threatinator/parser.rb, line 17
def eql?(other)
  self.class == other.class &&
    self == other
end
run(io) click to toggle source

Runs the parser against the provided io, yielding records. @param [IO] io The IO to be parsed.

# File lib/threatinator/parser.rb, line 9
def run(io)
  raise NotImplementedError.new("#{self.class}#run not implemented!")
end