Class: ECCSV::Correction

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

Direct Known Subclasses

DeleteCorrection, InsertCorrection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(line, col, *args) ⇒ Correction

Returns a new instance of Correction.



5
6
7
8
# File 'lib/eccsv/correction.rb', line 5

def initialize(line, col, *args)
  @line = line
  @col = col
end

Instance Attribute Details

#colObject (readonly)

Returns the value of attribute col.



3
4
5
# File 'lib/eccsv/correction.rb', line 3

def col
  @col
end

#lineObject (readonly)

Returns the value of attribute line.



3
4
5
# File 'lib/eccsv/correction.rb', line 3

def line
  @line
end

Instance Method Details

#apply(stream) ⇒ Object

Raises:



10
11
12
# File 'lib/eccsv/correction.rb', line 10

def apply(stream)
  raise NotImplementedError
end