Sha256: 6608781004a11b824fef2f9c3e9903ad331421d03b5eb0df9f11c0992dfbac98

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

module Ray
  module Payloads
    class CallerPayload < Payload

      def initialize(location)
        @location = location
      end

      def type
        'caller'
      end

      def content
        {
          frame: {
            file_name: @location.absolute_path,
            line_number: @location.lineno,
            vendor_frame: false,
          }
        }
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-ray-0.4.1 lib/ray/payloads/caller_payload.rb
ruby-ray-0.4.0 lib/ray/payloads/caller_payload.rb