Sha256: c2da86343dae3f2a32a4259a1364a49eb30fdd735add8f89362437783c1ccbd7
Contents?: true
Size: 436 Bytes
Versions: 22
Compression:
Stored size: 436 Bytes
Contents
module Lookbook class LookbookError < StandardError attr_reader :scope, :original, :message def initialize(msg = nil, scope: nil, original: nil) @scope = scope @original = original @message = msg super(msg) end def full_message if msg.nil? message else scope_str = scope.nil? ? "[#{scope}]" : "" "#{scope_str} #{message}".strip end end end end
Version data entries
22 entries across 22 versions & 1 rubygems