Class: MetaHeader::Parser Abstract
- Inherits:
-
Object
- Object
- MetaHeader::Parser
- Defined in:
- lib/metaheader.rb
Overview
This class is abstract.
Subclass and override #parse to implement a custom parser.
Instance Method Summary collapse
-
#header ⇒ MetaHeader
The current instance.
- #parse(raw_input) ⇒ void
Instance Method Details
#header ⇒ MetaHeader
Returns the current instance.
20 21 22 |
# File 'lib/metaheader.rb', line 20 def header @mh end |
#parse(raw_input) ⇒ void
This method returns an undefined value.
26 27 28 |
# File 'lib/metaheader.rb', line 26 def parse(raw_input) raise NotImplementedError end |