Sha256: dc5b6a13eb3db3a4af36e92b454aee04e00389ffd050a9a501d54bf485c4398d
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
# encoding: utf-8 module RailsBestPractices module Core # Error is the violation to rails best practice. # # it indicates the filenname, line number and error message for the violation. class Error attr_reader :filename, :line_number, :message, :type, :url def initialize(filename, line_number, message, type, url = nil) @filename = filename @line_number = line_number @message = message @type = type @url = url end def to_s "#{@filename}:#{@line_number} - #{@message}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_best_practices-1.2.0 | lib/rails_best_practices/core/error.rb |