class ReciteCSV::Row::Base

Attributes

_raw_data[R]

Public Class Methods

new(raw_data) click to toggle source
# File lib/recite_csv/row/base.rb, line 8
def initialize(raw_data)
  @_raw_data = raw_data
end
new(*) click to toggle source
Calls superclass method
# File lib/recite_csv/row/base.rb, line 16
def self.new(*)
  if self == Base
    raise ::NotImplementedError,
          "#{self} is an abstract class and cannot be instantiated."
  end
  super
end

Public Instance Methods

[](key) click to toggle source
# File lib/recite_csv/row/base.rb, line 12
def [](key)
  self._raw_data[key]
end