mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
15 lines
248 B
Ruby
15 lines
248 B
Ruby
# frozen_string_literal: true
|
|
|
|
class OwnTracks::RecParser
|
|
attr_reader :file
|
|
|
|
def initialize(file)
|
|
@file = file
|
|
end
|
|
|
|
def call
|
|
file.split("\n").map do |line|
|
|
JSON.parse(line.split("\t* \t")[1])
|
|
end
|
|
end
|
|
end
|