Sha256: a009d8129c2fb7f32c5f4866a330833d99f96c09865e6d72c1545c9160f5738f
Contents?: true
Size: 529 Bytes
Versions: 7
Compression:
Stored size: 529 Bytes
Contents
# frozen_string_literal: true require "refinements/array" module Pennyworth module Presenters # Shapes a standard error record for serialization. class StandardError using Refinements::Array def initialize record @record = record end def id = label def label = record.name.to_s def path = file_path.empty? ? "" : [file_path, record.line_number].compress.join(":") private attr_reader :record def file_path = record.file_path.to_s end end end
Version data entries
7 entries across 7 versions & 1 rubygems