Sha256: 90a6a633d8e90a636df3985a6b3e2ef497bafa7d0346300a4af30ee63237e2d6
Contents?: true
Size: 520 Bytes
Versions: 2
Compression:
Stored size: 520 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 def initialize(filename, line_number, message) @filename = filename @line_number = line_number @message = message end def to_s "#{@filename}:#{@line_number} - #{@message}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_best_practices-0.6.5 | lib/rails_best_practices/core/error.rb |
rails_best_practices-0.6.1 | lib/rails_best_practices/core/error.rb |