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.2.6 lib/rails_best_practices/core/error.rb
rails_best_practices-0.2.5 lib/rails_best_practices/core/error.rb
rails_best_practices-0.2.4 lib/rails_best_practices/core/error.rb
rails_best_practices-0.2.3 lib/rails_best_practices/core/error.rb
rails_best_practices-0.2.2 lib/rails_best_practices/core/error.rb
rails_best_practices-0.2.1 lib/rails_best_practices/core/error.rb
rails_best_practices-0.2.0 lib/rails_best_practices/core/error.rb
rails_best_practices-0.1.2 lib/rails_best_practices/core/error.rb
rails_best_practices-0.1.1 lib/rails_best_practices/core/error.rb
rails_best_practices-0.1.0 lib/rails_best_practices/core/error.rb