Class: MetaHeader::Parser Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/metaheader.rb

Overview

This class is abstract.

Subclass and override #parse to implement a custom parser.

Instance Method Summary collapse

Instance Method Details

#headerMetaHeader

Returns the current instance.

Returns:



20
21
22
# File 'lib/metaheader.rb', line 20

def header
  @mh
end

#parse(raw_input) ⇒ void

This method returns an undefined value.

Parameters:

  • raw_input (IO)

Raises:

  • (NotImplementedError)


26
27
28
# File 'lib/metaheader.rb', line 26

def parse(raw_input)
  raise NotImplementedError
end