Sha256: a707e722a7e3ab5686e9c085238fe4a822b170b6d9bfc947c81952120c260f35
Contents?: true
Size: 265 Bytes
Versions: 13
Compression:
Stored size: 265 Bytes
Contents
#!/usr/bin/ruby require 'yaml' require 'pp' def pbuf(buf) unless buf.empty? x = YAML.load(buf) end buf.clear x end result = [] buf = "" File.open('log.xes').each do |line| result << pbuf(buf) if line == "---\n" buf += line end result << pbuf(buf)
Version data entries
13 entries across 13 versions & 1 rubygems