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