Last active
December 16, 2017 00:26
-
-
Save evie404/afa9632610762a704c1ccc61fac7f9a4 to your computer and use it in GitHub Desktop.
wtf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
module FooFile | |
class Processor | |
def self.from_file(file) | |
new(File.read(file)) | |
end | |
def initialize(raw) | |
@raw = raw | |
end | |
def process | |
cards_list = [] | |
@raw.split("\n").map do |line| | |
next if line.blank? | |
# tokens = line.split(' ') | |
# next if tokens[0].starts_with?('SB') | |
# [tokens[0], tokens[1..-1].join(' ')] | |
end.compact | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment