Sha256: 66ec85e0abff219d466e2a81d91e0a6521f79598f49d1d17125c5b7bb35733fe
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
module Ray module Payloads class TracePayload < Payload def initialize(locations) @locations = locations end def type 'trace' end def content frames = @locations.map do |location| { file_name: location.absolute_path, line_number: location.lineno, vendor_frame: false, } end { frames: frames } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-ray-0.4.1 | lib/ray/payloads/trace_payload.rb |
ruby-ray-0.4.0 | lib/ray/payloads/trace_payload.rb |