Class: RubyUtils::MetaData

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(header_line) ⇒ MetaData

initialization relevant meta information

Parameters:

  • header_line (Object)

    the head line of a data set holding the



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

Parameters:

  • header_line (Object)

    the head line of a data set holding the



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