In Files

  • csv/parser.rb

Parent

CSV::Parser::Scanner

Public Class Methods

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

Public Instance Methods

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