class ECCSV::InsertCorrection
Attributes
string[R]
Public Class Methods
new(line, col, string)
click to toggle source
Calls superclass method
ECCSV::Correction::new
# File lib/eccsv/correction.rb, line 18 def initialize(line, col, string) super @string = string end
Public Instance Methods
apply(stream)
click to toggle source
# File lib/eccsv/correction.rb, line 27 def apply(stream) stream.insert(@string, @line, @col) end
length()
click to toggle source
# File lib/eccsv/correction.rb, line 23 def length @string.length end