In Files

  • csv/parser.rb

Parent

CSV::Parser::Scanner

Public Class Methods

new(*args) click to toggle source
 
               # File csv/parser.rb, line 19
def initialize(*args)
  super
  @keeps = []
end
            

Public Instance Methods

keep_back() click to toggle source
 
               # File csv/parser.rb, line 33
def keep_back
  self.pos = @keeps.pop
end
            
keep_drop() click to toggle source
 
               # File csv/parser.rb, line 37
def keep_drop
  @keeps.pop
end
            
keep_end() click to toggle source
 
               # File csv/parser.rb, line 28
def keep_end
  start = @keeps.pop
  string[start, pos - start]
end
            
keep_start() click to toggle source
 
               # File csv/parser.rb, line 24
def keep_start
  @keeps.push(pos)
end