class SeparatedValues::Parser
Attributes
file_path[R]
options[R]
Public Class Methods
new(file_path, options = DEFAULT_OPTIONS)
click to toggle source
# File lib/separated_values/parser.rb, line 8 def initialize(file_path, options = DEFAULT_OPTIONS) @file_path = file_path @options = options end
Public Instance Methods
parse()
click to toggle source
# File lib/separated_values/parser.rb, line 13 def parse Document.new(rows, options) end
Private Instance Methods
rows()
click to toggle source
# File lib/separated_values/parser.rb, line 19 def rows File.readlines(file_path).map do |line| RowParser.new(line, options).parse end end