Sha256: 81e8f26de2a0ee8f2e161720c168b9384e3722e96402ccabcdea5b2878a57fb1
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
module Simplabs module Excellent module Core class Error attr_reader :check, :info, :filename, :line_number, :message, :message_template def initialize(check, message, filename, line_number, info) @check = check.to_s.underscore.to_sym @info = info @filename = filename @line_number = line_number.to_i @message = '' if !message.nil? @message_template = message @info.each { |key, value| message.gsub!(/\{\{#{key}\}\}/, value.to_s) } @message = message end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simplabs-excellent-1.0.0 | lib/simplabs/excellent/core/error.rb |
simplabs-excellent-1.0.1 | lib/simplabs/excellent/core/error.rb |