Sha256: 88b44148e04c5020e7bfbb53e32da906f630d4bdf95d5f8ed384e6ea0e720c49
Contents?: true
Size: 637 Bytes
Versions: 5
Compression:
Stored size: 637 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 attr_accessor :git_commit, :git_username 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
5 entries across 5 versions & 1 rubygems