Skip to content

Instantly share code, notes, and snippets.

@evie404
Last active December 16, 2017 00:26
Show Gist options
  • Save evie404/afa9632610762a704c1ccc61fac7f9a4 to your computer and use it in GitHub Desktop.
Save evie404/afa9632610762a704c1ccc61fac7f9a4 to your computer and use it in GitHub Desktop.
wtf
# 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