Class: RubyUtils::MetaData
- Inherits:
-
Object
- Object
- RubyUtils::MetaData
- Defined in:
- lib/ruby_utils/meta_data.rb
Overview
Abstract base class that holds the common information that all types of data sets share.
Instance Method Summary collapse
-
#initialize(header_line) ⇒ MetaData
constructor
initialization relevant meta information.
-
#parse_header(header_line) ⇒ Object
private
abstract
abstract method which parses the required meta information from the head line relevant meta information.
Constructor Details
#initialize(header_line) ⇒ MetaData
initialization relevant meta information
12 13 14 |
# File 'lib/ruby_utils/meta_data.rb', line 12 def initialize(header_line) parse_header(header_line) end |
Instance Method Details
#parse_header(header_line) ⇒ Object (private)
This method is abstract.
subclasses need to implement this method
abstract method which parses the required meta information from the head line
relevant meta information
23 24 25 26 |
# File 'lib/ruby_utils/meta_data.rb', line 23 def parse_header(header_line) fail NotImplementedError, " Error: the subclass #{self.class} needs " \ "to implement the method: parse_header from its base class".red end |