Sha256: 403c9156ecad82e54138f67cb179822bcf6f0c35f0d5d021db96e2aed611e002

Contents?: true

Size: 437 Bytes

Versions: 4

Compression:

Stored size: 437 Bytes

Contents

module Marvin
  # An abstract class for an IRC protocol
  # Parser. Used as a basis for expirimentation.
  class AbstractParser
    
    def self.parse(line)
      return self.new(line.strip).to_event
    end
    
    def initialize(line)
      raise NotImplementedError, "Not implemented in an abstract parser"
    end
    
    def to_event
      raise NotImplementedError, "Not implemented in an abstract parser"
    end
    
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
Sutto-marvin-0.1.0.20081014 lib/marvin/abstract_parser.rb
Sutto-marvin-0.1.0.20081016 lib/marvin/abstract_parser.rb
Sutto-marvin-0.1.20081115 lib/marvin/abstract_parser.rb
jeffrafter-marvin-0.1.20081115 lib/marvin/abstract_parser.rb