Sha256: 7e5c599b60d259605f12cd727e65983f862fc00ae6484ab36579ccca2b307919

Contents?: true

Size: 372 Bytes

Versions: 50

Compression:

Stored size: 372 Bytes

Contents

module RailsBestPractices
  module Core
    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

50 entries across 50 versions & 1 rubygems

Version Path
rails_best_practices-0.4.2 lib/rails_best_practices/core/error.rb
rails_best_practices-0.4.1 lib/rails_best_practices/core/error.rb
rails_best_practices-0.4.0 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.27 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.26 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.25 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.24 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.23 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.22 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.21 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.20 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.19 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.18 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.17 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.16 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.15 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.14 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.13 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.12 lib/rails_best_practices/core/error.rb
rails_best_practices-0.3.11 lib/rails_best_practices/core/error.rb