class Parser

Public Class Methods

new(file_path) click to toggle source
# File lib/cyrus-code-challenge/parser.rb, line 4
def initialize(file_path)
  @file_path = file_path
end

Public Instance Methods

parse() click to toggle source
# File lib/cyrus-code-challenge/parser.rb, line 8
def parse
  file = File.open(@file_path)
  contents = file.read
  array = contents.split("\n").map do |content|
    normalize(content)
  end
end